Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix #5404
  • Loading branch information
rtri committed Dec 7, 2016
1 parent 4285bc1 commit fdbe96d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rts/Lua/LuaSyncedMoveCtrl.cpp
Expand Up @@ -548,8 +548,8 @@ static int SetMoveTypeData(lua_State* L, AMoveType* moveType, const char* caller
{
int numAssignedValues = 0;

if (moveType == NULL) {
luaL_error(L, "[%s] unit %d has incompatible movetype for %s", __FUNCTION__, lua_tonumber(L, 1), caller);
if (moveType == nullptr) {
luaL_error(L, "[%s] unit %d has incompatible movetype for %s", __FUNCTION__, lua_tointeger(L, 1), caller);
return numAssignedValues;
}

Expand Down

0 comments on commit fdbe96d

Please sign in to comment.