From bfe00dc1f318aed693130e384ae0c3da147c5798 Mon Sep 17 00:00:00 2001 From: mniip Date: Sat, 27 Apr 2013 02:57:41 +0400 Subject: Ooooooohh diff --git a/src/cat/LegacyLuaAPI.cpp b/src/cat/LegacyLuaAPI.cpp index 96b8958..75b6780 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); -- cgit v0.9.2-21-gd62e