From bfe00dc1f318aed693130e384ae0c3da147c5798 Mon Sep 17 00:00:00 2001 From: mniip Date: Sat, 27 Apr 2013 02:57:41 +0400 Subject: [PATCH] Ooooooohh --- src/cat/LegacyLuaAPI.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cat/LegacyLuaAPI.cpp b/src/cat/LegacyLuaAPI.cpp index 96b895872..75b67806b 100644 --- a/src/cat/LegacyLuaAPI.cpp +++ b/src/cat/LegacyLuaAPI.cpp @@ -1571,7 +1571,7 @@ int luatpt_register_step(lua_State* l) lua_rawget(l, LUA_REGISTRYINDEX); if(!lua_istable(l, -1)) { - lua_pop(l, -1); + lua_pop(l, 1); lua_newtable(l); lua_pushstring(l, "stepfunctions"); lua_pushvalue(l, -2);