X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=src%2Fkeycode.cpp;h=54218517822ee44244379fd3e4b957af81e08ebe;hb=013921782b1a8506f4aee1d1be0312002eddd575;hp=5ad5ab55d61254af1641f3d19f6007cd7dc47163;hpb=836e43db60ff1f3c9d160d0d58ba5a631c4293fc;p=oweals%2Fminetest.git diff --git a/src/keycode.cpp b/src/keycode.cpp index 5ad5ab55d..542185178 100644 --- a/src/keycode.cpp +++ b/src/keycode.cpp @@ -20,6 +20,7 @@ with this program; if not, write to the Free Software Foundation, Inc., #include "keycode.h" #include "main.h" // For g_settings #include "exceptions.h" +#include "settings.h" class UnknownKeycode : public BaseException { @@ -334,7 +335,7 @@ KeyPress getKeySetting(const char *settingname) if(n) return n->getValue(); g_key_setting_cache.insert(settingname, - g_settings.get(settingname).c_str()); + g_settings->get(settingname).c_str()); return g_key_setting_cache.find(settingname)->getValue(); }