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

View file

@ -465,10 +465,10 @@ 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");
return 1; return 1;