summaryrefslogtreecommitdiff
path: root/src/cat
diff options
context:
space:
mode:
authorjacksonmj <mj-pt@jacksonmj.co.uk>2013-06-09 00:18:44 (GMT)
committer jacksonmj <mj-pt@jacksonmj.co.uk>2013-06-09 00:18:44 (GMT)
commit0f5d0859b451f7cd716422a8b389129eb135ed60 (patch)
treee48b84f589e78e2623f6da4c3b77b6a1b43fb762 /src/cat
parenta1f9da2d0cedd4733102f1c1831cab5b51955ac2 (diff)
downloadpowder-0f5d0859b451f7cd716422a8b389129eb135ed60.zip
powder-0f5d0859b451f7cd716422a8b389129eb135ed60.tar.gz
Possibly fix crash due to Lua running out of stack space
Diffstat (limited to 'src/cat')
-rw-r--r--src/cat/LuaScriptInterface.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/cat/LuaScriptInterface.cpp b/src/cat/LuaScriptInterface.cpp
index df7176d..d40309c 100644
--- a/src/cat/LuaScriptInterface.cpp
+++ b/src/cat/LuaScriptInterface.cpp
@@ -2778,6 +2778,7 @@ void LuaScriptInterface::OnTick()
{
lua_getglobal(l, "simulation");
lua_pushinteger(l, luacon_sim->NUM_PARTS); lua_setfield(l, -2, "NUM_PARTS");
+ lua_pop(l, 1);
ui::Engine::Ref().LastTick(clock());
if(luacon_mousedown)
luacon_mouseevent(luacon_mousex, luacon_mousey, luacon_mousebutton, LUACON_MPRESS, 0);