From 4df389db6d8d02373cf98428ad42174811b863a6 Mon Sep 17 00:00:00 2001 From: Celtic Minstrel Date: Sat, 31 Aug 2024 01:23:22 -0400 Subject: [PATCH] Use proper type and name --- src/game/boe.actions.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/game/boe.actions.cpp b/src/game/boe.actions.cpp index 54645a16..1b2b7978 100644 --- a/src/game/boe.actions.cpp +++ b/src/game/boe.actions.cpp @@ -1805,10 +1805,10 @@ void debug_give_item() { record_action("debug_give_item", ""); } int i = get_num_response(0, univ.scenario.scen_items.size()-1, "Which item?"); - int j = univ.scenario.scen_items[i].ident; + bool was_ident = univ.scenario.scen_items[i].ident; univ.scenario.scen_items[i].ident = true; univ.party.give_item(univ.scenario.scen_items[i], true); - univ.scenario.scen_items[i].ident = j; + univ.scenario.scen_items[i].ident = was_ident; print_buf(); put_item_screen(stat_window); put_pc_screen(); // In case the item was food or gold