forked from github/server
CID 26255: Null pointer dereferences (FORWARD_NULL)
This commit is contained in:
parent
0a67d53264
commit
7a01b58e8d
1 changed files with 3 additions and 3 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue