mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-10-21 00:47:40 +00:00
dialog:: fixed crash in editingDetail
This commit is contained in:
@@ -1210,6 +1210,8 @@ EX namespace dialog {
|
|||||||
}
|
}
|
||||||
|
|
||||||
EX bool editingDetail() {
|
EX bool editingDetail() {
|
||||||
|
auto ptr = dynamic_cast<number_dialog*> (screens.back().target_base());
|
||||||
|
if(!ptr) return false;
|
||||||
auto& ne = get_ne();
|
auto& ne = get_ne();
|
||||||
return ne.editwhat == &vid.highdetail || ne.editwhat == &vid.middetail;
|
return ne.editwhat == &vid.highdetail || ne.editwhat == &vid.middetail;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user