mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-02-25 15:30:13 +00:00
dialog:: fixed crash in editingDetail
This commit is contained in:
parent
e666faba31
commit
3a3317d0be
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user