summaryrefslogtreecommitdiffstats
path: root/source/ManualBindings.cpp
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2013-08-06 19:27:48 +0200
committermadmaxoft <github@xoft.cz>2013-08-06 19:27:48 +0200
commit0281b1db6e862af628bd9ea6712ce7e2f66cc4d8 (patch)
tree0151d18c48bdb7e9d79381c9d387b13a30479e8c /source/ManualBindings.cpp
parentcLuaState is used for pushing splits in ManualBindings (diff)
downloadcuberite-0281b1db6e862af628bd9ea6712ce7e2f66cc4d8.tar
cuberite-0281b1db6e862af628bd9ea6712ce7e2f66cc4d8.tar.gz
cuberite-0281b1db6e862af628bd9ea6712ce7e2f66cc4d8.tar.bz2
cuberite-0281b1db6e862af628bd9ea6712ce7e2f66cc4d8.tar.lz
cuberite-0281b1db6e862af628bd9ea6712ce7e2f66cc4d8.tar.xz
cuberite-0281b1db6e862af628bd9ea6712ce7e2f66cc4d8.tar.zst
cuberite-0281b1db6e862af628bd9ea6712ce7e2f66cc4d8.zip
Diffstat (limited to '')
-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);