summaryrefslogtreecommitdiffstats
path: root/source/ManualBindings.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/ManualBindings.cpp')
-rw-r--r--source/ManualBindings.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/ManualBindings.cpp b/source/ManualBindings.cpp
index 292b33726..f428b0905 100644
--- a/source/ManualBindings.cpp
+++ b/source/ManualBindings.cpp
@@ -143,7 +143,7 @@ cPlugin_NewLua * GetLuaPlugin(lua_State * L)
if (!lua_islightuserdata(L, -1))
{
LOGWARNING("%s: cannot get plugin instance, what have you done to my Lua state?", __FUNCTION__);
- lua_pop(L);
+ lua_pop(L, 1);
return NULL;
}
cPlugin_NewLua * Plugin = (cPlugin_NewLua *)lua_topointer(L, -1);