diff options
author | Tycho Bickerstaff <work.tycho@gmail.com> | 2013-12-31 17:24:53 +0100 |
---|---|---|
committer | Tycho Bickerstaff <work.tycho@gmail.com> | 2013-12-31 17:24:53 +0100 |
commit | c52a46a5e3915fab58ad4c28086b19a1cbcf5755 (patch) | |
tree | f1fd5c77ebf7ccb130700a97fe7c9c8c02d411b5 /src/Bindings/LuaState.cpp | |
parent | Merge branch 'master' into cmake-fixes (diff) | |
parent | Merge branch 'FishingHook' (diff) | |
download | cuberite-c52a46a5e3915fab58ad4c28086b19a1cbcf5755.tar cuberite-c52a46a5e3915fab58ad4c28086b19a1cbcf5755.tar.gz cuberite-c52a46a5e3915fab58ad4c28086b19a1cbcf5755.tar.bz2 cuberite-c52a46a5e3915fab58ad4c28086b19a1cbcf5755.tar.lz cuberite-c52a46a5e3915fab58ad4c28086b19a1cbcf5755.tar.xz cuberite-c52a46a5e3915fab58ad4c28086b19a1cbcf5755.tar.zst cuberite-c52a46a5e3915fab58ad4c28086b19a1cbcf5755.zip |
Diffstat (limited to 'src/Bindings/LuaState.cpp')
-rw-r--r-- | src/Bindings/LuaState.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/Bindings/LuaState.cpp b/src/Bindings/LuaState.cpp index 64a818a60..a684620f3 100644 --- a/src/Bindings/LuaState.cpp +++ b/src/Bindings/LuaState.cpp @@ -468,6 +468,18 @@ void cLuaState::Push(cItems * a_Items) +void cLuaState::Push(const cItems & a_Items) +{ + ASSERT(IsValid()); + + tolua_pushusertype(m_LuaState, (void *)&a_Items, "cItems"); + m_NumCurrentFunctionArgs += 1; +} + + + + + void cLuaState::Push(cClientHandle * a_Client) { ASSERT(IsValid()); |