1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-11-24 05:17:17 +00:00

params now indexed by parameter_name, not by s

This commit is contained in:
Zeno Rogue 2021-02-18 15:49:23 +01:00
parent cc1cd5655d
commit 2d03e822e6

View File

@ -370,7 +370,7 @@ EX float_setting *param_f(ld& val, const string p, const string s, ld dft) {
val = dft;
u->add_as_saver();
auto f = &*u;
params[s] = std::move(u);
params[u->parameter_name] = std::move(u);
return f;
}
@ -421,7 +421,7 @@ EX bool_setting *param_b(bool& val, const string s, bool dft) {
val = dft;
u->add_as_saver();
auto f = &*u;
params[s] = std::move(u);
params[u->parameter_name] = std::move(u);
return f;
}