1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-03-01 09:20:09 +00:00

rogueviz::bringris:: fixed for empty dialogs

This commit is contained in:
Zeno Rogue 2025-02-08 12:08:33 +01:00
parent 7a31a33c5f
commit 46f77557ae

View File

@ -2217,7 +2217,7 @@ auto hooks =
+ addHook(hooks_frame, 100, bringris_frame)
+ addHook(hooks_configfile, 300, default_config)
+ addHook(dialog::hooks_display_dialog, 100, [] () {
if(dialog::items[0].body == "Bringris keys") {
if(dialog::items.size() && dialog::items[0].body == "Bringris keys") {
dialog::addBreak(200);
if(!rotate_allowed)
dialog::addHelp("note: rotation keys only available when necessary");