1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-06-25 22:53:19 +00:00

dialog:: fixed crash in editingDetail

This commit is contained in:
Zeno Rogue 2023-08-14 04:37:01 +02:00
parent e666faba31
commit 3a3317d0be

View File

@ -1210,6 +1210,8 @@ EX namespace dialog {
}
EX bool editingDetail() {
auto ptr = dynamic_cast<number_dialog*> (screens.back().target_base());
if(!ptr) return false;
auto& ne = get_ne();
return ne.editwhat == &vid.highdetail || ne.editwhat == &vid.middetail;
}