summaryrefslogtreecommitdiff
path: root/plugins/MirLua/src/m_hotkeys.cpp
diff options
context:
space:
mode:
authoraunsane <aunsane@gmail.com>2017-10-10 21:55:12 +0300
committeraunsane <aunsane@gmail.com>2017-10-10 21:55:26 +0300
commit39e461bb614d75a6f23511a016afaeb3aba35f1a (patch)
treeb61e3b3571bec7cb072abf91b512d0c398ee9195 /plugins/MirLua/src/m_hotkeys.cpp
parentd3387c7307fa3f883e77c17e443874b3a085ded5 (diff)
MirLua:
- m_json moved into base plugin - added m_http module -version bump
Diffstat (limited to 'plugins/MirLua/src/m_hotkeys.cpp')
-rw-r--r--plugins/MirLua/src/m_hotkeys.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/plugins/MirLua/src/m_hotkeys.cpp b/plugins/MirLua/src/m_hotkeys.cpp
index 6ab3f07625..2661197d2a 100644
--- a/plugins/MirLua/src/m_hotkeys.cpp
+++ b/plugins/MirLua/src/m_hotkeys.cpp
@@ -72,12 +72,8 @@ static int hotkeys_MakeHotkey(lua_State *L)
mod = (1 << (luaL_checkoption(L, 1, NULL, mods) - 1));
break;
case LUA_TTABLE:
- lua_pushnil(L);
- while (lua_next(L, 1) != 0)
- {
+ for (lua_pushnil(L); lua_next(L, 1); lua_pop(L, 1))
mod |= (1 << (luaL_checkoption(L, -1, NULL, mods) - 1));
- lua_pop(L, 1);
- }
break;
default:
luaL_argerror(L, 1, luaL_typename(L, 1));