mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-05-17 22:54:08 +00:00
ru:: fixed a crash when loading an illegal room from edit-poincare
This commit is contained in:
parent
735d5c686e
commit
db399ac5d0
@ -208,7 +208,7 @@ void render_the_map() {
|
|||||||
}
|
}
|
||||||
if(cmode == mode::editmap) {
|
if(cmode == mode::editmap) {
|
||||||
getcstat = '-';
|
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;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user