summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2014-02-04 22:24:03 +0100
committermadmaxoft <github@xoft.cz>2014-02-04 22:24:03 +0100
commit010e64be1124caabeb692f2005db364efb6ac9a0 (patch)
tree58f358216fad1deb29b43bbf50ba10e895fcfef5
parentFixed a warning in cItem in gcc. (diff)
downloadcuberite-010e64be1124caabeb692f2005db364efb6ac9a0.tar
cuberite-010e64be1124caabeb692f2005db364efb6ac9a0.tar.gz
cuberite-010e64be1124caabeb692f2005db364efb6ac9a0.tar.bz2
cuberite-010e64be1124caabeb692f2005db364efb6ac9a0.tar.lz
cuberite-010e64be1124caabeb692f2005db364efb6ac9a0.tar.xz
cuberite-010e64be1124caabeb692f2005db364efb6ac9a0.tar.zst
cuberite-010e64be1124caabeb692f2005db364efb6ac9a0.zip
-rw-r--r--src/Bindings/LuaState.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/Bindings/LuaState.cpp b/src/Bindings/LuaState.cpp
index 8dd17c448..ac5ce47e1 100644
--- a/src/Bindings/LuaState.cpp
+++ b/src/Bindings/LuaState.cpp
@@ -1018,9 +1018,7 @@ void cLuaState::LogStackTrace(lua_State * a_LuaState)
int depth = 0;
while (lua_getstack(a_LuaState, depth, &entry))
{
- int status = lua_getinfo(a_LuaState, "Sln", &entry);
- assert(status);
-
+ lua_getinfo(a_LuaState, "Sln", &entry);
LOGWARNING(" %s(%d): %s", entry.short_src, entry.currentline, entry.name ? entry.name : "(no name)");
depth++;
}