diff --git a/src/bind_region.c b/src/bind_region.c index e114ea806..b7eaea9e7 100644 --- a/src/bind_region.c +++ b/src/bind_region.c @@ -465,9 +465,9 @@ static int tolua_region_create(lua_State * L) } if (result) { terraform_region(result, terrain); - } - if (result->land) { - fix_demand(result); + if (result->land) { + fix_demand(result); + } } tolua_pushusertype(L, result, TOLUA_CAST "region");