Fixed Clang 5.0 compile errors (#4085)
* Fixed Clang 5.0 compile errors * Fixed wrong comment * Only disable warnings in Clang 5 or higher * Added a CMake condition for the Clang 5 no-zero-as-null-pointer-constant warning * Now using the use_nullptr branch of the Cuberite specific SQLiteCpp fork
This commit is contained in:
committed by
Alexander Harkness
parent
72616e7eb9
commit
532731e6f4
@@ -270,7 +270,7 @@ static int tolua_AllToLua_StringToMobType00(lua_State* tolua_S)
|
||||
else
|
||||
#endif
|
||||
{
|
||||
const AString a_MobString = tolua_tocppstring(LuaState, 1, 0);
|
||||
const AString a_MobString = tolua_tocppstring(LuaState, 1, nullptr);
|
||||
eMonsterType MobType = cMonster::StringToMobType(a_MobString);
|
||||
tolua_pushnumber(LuaState, static_cast<lua_Number>(MobType));
|
||||
tolua_pushcppstring(LuaState, a_MobString);
|
||||
|
||||
Reference in New Issue
Block a user