mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-01-11 18:00:34 +00:00
fixed a crash when trying to set some options
This commit is contained in:
parent
c1f4c19ea4
commit
970d65c71a
@ -77,7 +77,7 @@ struct setting {
|
||||
#endif
|
||||
|
||||
setting *setting::set_extra(const reaction_t& r) {
|
||||
auto s = sets; set_sets([s, r] { s(); dialog::extra_options = r; }); return this;
|
||||
auto s = sets; set_sets([s, r] { if(s) s(); dialog::extra_options = r; }); return this;
|
||||
}
|
||||
|
||||
setting *setting::set_reaction(const reaction_t& r) {
|
||||
|
Loading…
Reference in New Issue
Block a user