projects
/
zefram
/
minetest
/
minetest_engine.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
135a65e
)
Correctly pop stuff from the Lua stack in script_load()
author
Perttu Ahola
<celeron55@gmail.com>
Sat, 31 Dec 2011 12:41:57 +0000
(14:41 +0200)
committer
Perttu Ahola
<celeron55@gmail.com>
Sat, 31 Dec 2011 12:41:57 +0000
(14:41 +0200)
src/script.cpp
patch
|
blob
|
history
diff --git
a/src/script.cpp
b/src/script.cpp
index 14c23e009f7728b380a4fa838281d627018f3f50..f91b228960c27ef17420cb1f7c737392fc9e892b 100644
(file)
--- 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;
}