From 8fa1ef32846984547d277d609136bdcab0485ef4 Mon Sep 17 00:00:00 2001 From: Nat Quayle Nelson Date: Sat, 3 May 2025 16:41:56 -0500 Subject: [PATCH] Fix debug give item not refreshing Fix #670 --- src/game/boe.actions.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/game/boe.actions.cpp b/src/game/boe.actions.cpp index 46a22dcc..21c3f795 100644 --- a/src/game/boe.actions.cpp +++ b/src/game/boe.actions.cpp @@ -2096,8 +2096,10 @@ void debug_give_item() { univ.scenario.scen_items[i].ident = was_ident; print_buf(); + stat_window = eItemWinMode(univ.cur_pc); put_item_screen(stat_window); put_pc_screen(); // In case the item was food or gold + refresh_stat_areas(0); } void debug_overburden() { @@ -2110,12 +2112,14 @@ void debug_overburden() { // Give the PC very heavy objects that do nothing: while(pc.give_item(item, GIVE_ALLOW_OVERLOAD) == eBuyStatus::OK){} if(pc.has_space()){ - // I don't know why this would ever happen, since the weight is 0, but just in case: ASB("Debug: failed to fill " + pc.name + "'s inventory."); }else{ ASB("Debug: filled " + pc.name + "'s inventory."); } print_buf(); + stat_window = eItemWinMode(univ.cur_pc); + put_item_screen(stat_window); + refresh_stat_areas(0); } void debug_print_location() {