summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authortycho <work.tycho@gmail.com>2015-09-24 16:49:05 +0200
committertycho <work.tycho@gmail.com>2015-09-24 16:54:32 +0200
commitb4f934b8083d796b9e7f877abbdebad3695eaa28 (patch)
tree046d779032f730ad4a011308e1bda92fd95c250c /src
parentAdd new "ForEach" function: ForEachLoadedChunk. (diff)
downloadcuberite-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 '')
-rw-r--r--src/Bindings/ManualBindings_World.cpp2
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");