diff --git a/rsrc/dialogs/help-debug.xml b/rsrc/dialogs/help-debug.xml index 0f05f563..83562000 100644 --- a/rsrc/dialogs/help-debug.xml +++ b/rsrc/dialogs/help-debug.xml @@ -39,5 +39,10 @@ - + + + + + + diff --git a/src/game/boe.actions.cpp b/src/game/boe.actions.cpp index d8113d25..af4a178c 100644 --- a/src/game/boe.actions.cpp +++ b/src/game/boe.actions.cpp @@ -2421,9 +2421,11 @@ void show_debug_help() { }); } } - for(; idx < 30; ++idx){ + for(; ; ++idx){ std::ostringstream btn_name; btn_name << "btn" << (idx+1); + if(!debug_panel.hasControl(btn_name.str())) + break; cControl& button = debug_panel[btn_name.str()]; button.hide(); }