summaryrefslogtreecommitdiff
path: root/src/cat/LegacyLuaAPI.cpp
diff options
context:
space:
mode:
authormniip <mniip@mniip.com>2013-04-26 22:57:41 (GMT)
committer mniip <mniip@mniip.com>2013-04-26 22:57:41 (GMT)
commitbfe00dc1f318aed693130e384ae0c3da147c5798 (patch)
tree2e7b3fb284d670d528b055c86b45315c47503fd5 /src/cat/LegacyLuaAPI.cpp
parent77e837c77528965d3c98e722a55f62b45dc67cfe (diff)
downloadpowder-bfe00dc1f318aed693130e384ae0c3da147c5798.zip
powder-bfe00dc1f318aed693130e384ae0c3da147c5798.tar.gz
Ooooooohh
Diffstat (limited to 'src/cat/LegacyLuaAPI.cpp')
-rw-r--r--src/cat/LegacyLuaAPI.cpp2
1 files changed, 1 insertions, 1 deletions
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);