diff options
author | tycho <work.tycho@gmail.com> | 2015-09-24 16:49:05 +0200 |
---|---|---|
committer | tycho <work.tycho@gmail.com> | 2015-09-24 16:54:32 +0200 |
commit | b4f934b8083d796b9e7f877abbdebad3695eaa28 (patch) | |
tree | 046d779032f730ad4a011308e1bda92fd95c250c /src/Bindings | |
parent | Add new "ForEach" function: ForEachLoadedChunk. (diff) | |
download | cuberite-b4f934b8083d796b9e7f877abbdebad3695eaa28.tar cuberite-b4f934b8083d796b9e7f877abbdebad3695eaa28.tar.gz cuberite-b4f934b8083d796b9e7f877abbdebad3695eaa28.tar.bz2 cuberite-b4f934b8083d796b9e7f877abbdebad3695eaa28.tar.lz cuberite-b4f934b8083d796b9e7f877abbdebad3695eaa28.tar.xz cuberite-b4f934b8083d796b9e7f877abbdebad3695eaa28.tar.zst cuberite-b4f934b8083d796b9e7f877abbdebad3695eaa28.zip |
Diffstat (limited to 'src/Bindings')
-rw-r--r-- | src/Bindings/ManualBindings_World.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Bindings/ManualBindings_World.cpp b/src/Bindings/ManualBindings_World.cpp index e007a9689..6f8499611 100644 --- a/src/Bindings/ManualBindings_World.cpp +++ b/src/Bindings/ManualBindings_World.cpp @@ -131,7 +131,7 @@ static int tolua_cWorld_ForEachLoadedChunk(lua_State * tolua_S) } // Read the params: - cWorld * World = (cWorld *)tolua_tousertype(tolua_S, 1, nullptr); + cWorld * World = reinterpret_cast<cWorld *>(tolua_tousertype(tolua_S, 1, nullptr)); if (World == nullptr) { LOGWARNING("World:ForEachLoadedChunk(): invalid world parameter"); |