CID 26255: Null pointer dereferences (FORWARD_NULL)

This commit is contained in:
Enno Rehling 2015-10-29 16:43:09 +01:00
parent 0a67d53264
commit 7a01b58e8d
1 changed files with 3 additions and 3 deletions

View File

@ -465,9 +465,9 @@ static int tolua_region_create(lua_State * L)
} }
if (result) { if (result) {
terraform_region(result, terrain); terraform_region(result, terrain);
} if (result->land) {
if (result->land) { fix_demand(result);
fix_demand(result); }
} }
tolua_pushusertype(L, result, TOLUA_CAST "region"); tolua_pushusertype(L, result, TOLUA_CAST "region");