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,10 +465,10 @@ static int tolua_region_create(lua_State * L)
}
if (result) {
terraform_region(result, terrain);
}
if (result->land) {
fix_demand(result);
}
}
tolua_pushusertype(L, result, TOLUA_CAST "region");
return 1;