fixed cast
This commit is contained in:
parent
6e86d20f73
commit
b4f934b808
@ -131,7 +131,7 @@ static int tolua_cWorld_ForEachLoadedChunk(lua_State * tolua_S)
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Read the params:
|
// 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)
|
if (World == nullptr)
|
||||||
{
|
{
|
||||||
LOGWARNING("World:ForEachLoadedChunk(): invalid world parameter");
|
LOGWARNING("World:ForEachLoadedChunk(): invalid world parameter");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user