diff options
Diffstat (limited to 'plugins/MirLua/src/m_srmm.cpp')
-rw-r--r-- | plugins/MirLua/src/m_srmm.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/MirLua/src/m_srmm.cpp b/plugins/MirLua/src/m_srmm.cpp index 9a98755380..8ec739bd27 100644 --- a/plugins/MirLua/src/m_srmm.cpp +++ b/plugins/MirLua/src/m_srmm.cpp @@ -48,10 +48,10 @@ static int lua_AddButton(lua_State *L) MakeBBButton(L, bbb); int hScriptLangpack = CMLuaEnvironment::GetEnvironmentId(L); - INT_PTR res = Srmm_AddButton(&bbb, hScriptLangpack); + HANDLE res = Srmm_AddButton(&bbb, hScriptLangpack); CleanBBButton(bbb); - if (res) + if (!res) { lua_pushnil(L); return 1; |