summaryrefslogtreecommitdiffstats
path: root/src/Bindings/LuaState.h
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2016-08-04 21:04:03 +0200
committerGitHub <noreply@github.com>2016-08-04 21:04:03 +0200
commitad9fc1767321fc0bd11aaa85f4e5d81177cca7cc (patch)
treeccbb0e62481ce4944107294200c948f835494fe0 /src/Bindings/LuaState.h
parentMerge pull request #3293 from LogicParrot/blockArea (diff)
parentFixed RasPi builds of unit tests. (diff)
downloadcuberite-ad9fc1767321fc0bd11aaa85f4e5d81177cca7cc.tar
cuberite-ad9fc1767321fc0bd11aaa85f4e5d81177cca7cc.tar.gz
cuberite-ad9fc1767321fc0bd11aaa85f4e5d81177cca7cc.tar.bz2
cuberite-ad9fc1767321fc0bd11aaa85f4e5d81177cca7cc.tar.lz
cuberite-ad9fc1767321fc0bd11aaa85f4e5d81177cca7cc.tar.xz
cuberite-ad9fc1767321fc0bd11aaa85f4e5d81177cca7cc.tar.zst
cuberite-ad9fc1767321fc0bd11aaa85f4e5d81177cca7cc.zip
Diffstat (limited to 'src/Bindings/LuaState.h')
-rw-r--r--src/Bindings/LuaState.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/Bindings/LuaState.h b/src/Bindings/LuaState.h
index 106d8a783..c34feca9d 100644
--- a/src/Bindings/LuaState.h
+++ b/src/Bindings/LuaState.h
@@ -256,8 +256,7 @@ public:
{
if (m_LuaState != nullptr)
{
- auto top = lua_gettop(m_LuaState);
- ASSERT(m_StackLen == top);
+ ASSERT(m_StackLen == lua_gettop(m_LuaState));
lua_pop(m_LuaState, 1);
}
}