1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-05-17 06:34:07 +00:00

ru:: fixed a crash when loading an illegal room from edit-poincare

This commit is contained in:
Zeno Rogue 2025-05-10 12:15:56 +02:00
parent 735d5c686e
commit db399ac5d0

View File

@ -208,7 +208,7 @@ void render_the_map() {
}
if(cmode == mode::editmap) {
getcstat = '-';
dialog::add_key_action('-', [] { if(!mouseover) return; current_room = &rooms[mouseover]; switch_mapmode_to(mapmode::standard); });
dialog::add_key_action('-', [] { if(!mouseover || !rooms.count(mouseover)) return; current_room = &rooms[mouseover]; switch_mapmode_to(mapmode::standard); });
}
break;
}