diff options
author | Mattes D <github@xoft.cz> | 2016-08-02 13:12:34 +0200 |
---|---|---|
committer | Mattes D <github@xoft.cz> | 2016-08-04 20:47:53 +0200 |
commit | d1dee3c9092b7c270b297366757c9fc8d03bb0dd (patch) | |
tree | ccbb0e62481ce4944107294200c948f835494fe0 /src/Bindings/LuaState.h | |
parent | Merge pull request #3293 from LogicParrot/blockArea (diff) | |
download | cuberite-d1dee3c9092b7c270b297366757c9fc8d03bb0dd.tar cuberite-d1dee3c9092b7c270b297366757c9fc8d03bb0dd.tar.gz cuberite-d1dee3c9092b7c270b297366757c9fc8d03bb0dd.tar.bz2 cuberite-d1dee3c9092b7c270b297366757c9fc8d03bb0dd.tar.lz cuberite-d1dee3c9092b7c270b297366757c9fc8d03bb0dd.tar.xz cuberite-d1dee3c9092b7c270b297366757c9fc8d03bb0dd.tar.zst cuberite-d1dee3c9092b7c270b297366757c9fc8d03bb0dd.zip |
Diffstat (limited to 'src/Bindings/LuaState.h')
-rw-r--r-- | src/Bindings/LuaState.h | 3 |
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); } } |