mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-12-20 23:50:27 +00:00
fixed a crash with bitfield_editor in Shift+G
This commit is contained in:
parent
52f273e3f2
commit
f58de16a2e
@ -309,10 +309,10 @@ bool debugmode = false;
|
|||||||
// static apparently does not work in old compilers
|
// static apparently does not work in old compilers
|
||||||
int bitfield_v;
|
int bitfield_v;
|
||||||
|
|
||||||
template<class T> void bitfield_editor(int val, const T& setter, string help = "") {
|
template<class T> void bitfield_editor(int val, T setter, string help = "") {
|
||||||
bitfield_v = val;
|
bitfield_v = val;
|
||||||
dialog::editNumber(bitfield_v, 0, 100, 1, bitfield_v, help, "");
|
dialog::editNumber(bitfield_v, 0, 100, 1, bitfield_v, help, "");
|
||||||
dialog::reaction = [&setter] () { setter(bitfield_v); };
|
dialog::reaction = [setter] () { setter(bitfield_v); };
|
||||||
}
|
}
|
||||||
|
|
||||||
struct debugScreen {
|
struct debugScreen {
|
||||||
|
Loading…
Reference in New Issue
Block a user