allow undo delete item from edit menu

This commit is contained in:
2025-06-02 21:44:47 -05:00
parent bdf1b8a4a8
commit cf02da133d

View File

@@ -390,6 +390,8 @@ static bool edit_placed_item_loc(cDialog& me, std::string item_hit, cTown::cItem
static bool edit_placed_item_delete(cDialog& me, const short which) {
me.toast(false);
undo_list.add(action_ptr(new aPlaceEraseItem("Delete Item", false, which, town->preset_items[which])));
update_edit_menu();
town->preset_items[which].code = -1;
return true;
}