summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2014-02-10 22:44:56 +0100
committermadmaxoft <github@xoft.cz>2014-02-10 22:44:56 +0100
commit589a4839dfe05810235a16f430e72f5e622b09ee (patch)
tree6302b3b2d3169b2c5203a9252b83f34e76b4e874
parentAdded cPluginLua::cOperation. (diff)
downloadcuberite-589a4839dfe05810235a16f430e72f5e622b09ee.tar
cuberite-589a4839dfe05810235a16f430e72f5e622b09ee.tar.gz
cuberite-589a4839dfe05810235a16f430e72f5e622b09ee.tar.bz2
cuberite-589a4839dfe05810235a16f430e72f5e622b09ee.tar.lz
cuberite-589a4839dfe05810235a16f430e72f5e622b09ee.tar.xz
cuberite-589a4839dfe05810235a16f430e72f5e622b09ee.tar.zst
cuberite-589a4839dfe05810235a16f430e72f5e622b09ee.zip
-rw-r--r--src/Bindings/LuaState.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Bindings/LuaState.cpp b/src/Bindings/LuaState.cpp
index 22f342467..8f2a70a60 100644
--- a/src/Bindings/LuaState.cpp
+++ b/src/Bindings/LuaState.cpp
@@ -1206,7 +1206,7 @@ void cLuaState::LogStack(const char * a_Header)
void cLuaState::LogStack(lua_State * a_LuaState, const char * a_Header)
{
LOGD((a_Header != NULL) ? a_Header : "Lua C API Stack contents:");
- for (int i = lua_gettop(a_LuaState); i >= 0; i--)
+ for (int i = lua_gettop(a_LuaState); i > 0; i--)
{
AString Value;
int Type = lua_type(a_LuaState, i);