diff options
author | Perttu Ahola <celeron55@gmail.com> | 2011-12-31 14:41:57 +0200 |
---|---|---|
committer | Perttu Ahola <celeron55@gmail.com> | 2011-12-31 14:41:57 +0200 |
commit | 7b7b68cdabf1e34e74b9157315998aa40777251b (patch) | |
tree | f6a52ca99e44cb6413a96b9dd7c25ed39e16b519 /src | |
parent | 135a65e200d372dd31f19639d25c9b5aa1459252 (diff) | |
download | minetest-7b7b68cdabf1e34e74b9157315998aa40777251b.tar.gz minetest-7b7b68cdabf1e34e74b9157315998aa40777251b.tar.bz2 minetest-7b7b68cdabf1e34e74b9157315998aa40777251b.zip |
Correctly pop stuff from the Lua stack in script_load()
Diffstat (limited to 'src')
-rw-r--r-- | src/script.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/script.cpp b/src/script.cpp index 14c23e009..f91b22896 100644 --- a/src/script.cpp +++ b/src/script.cpp @@ -101,8 +101,10 @@ bool script_load(lua_State *L, const char *path) errorstream<<"[LUA] "<<lua_tostring(L, -1)<<std::endl; errorstream<<"[LUA] "<<std::endl; lua_pop(L, 1); // Pop error message from stack + lua_pop(L, 1); // Pop the error handler from stack return false; } + lua_pop(L, 1); // Pop the error handler from stack return true; } |