forked from github/server
bugfix terraforming in regionen ohne production
This commit is contained in:
parent
e8746177bc
commit
76976a970e
1 changed files with 24 additions and 23 deletions
|
@ -65,6 +65,7 @@ terraform_resources(region * r)
|
||||||
int i;
|
int i;
|
||||||
const terrain_type * terrain = r->terrain;
|
const terrain_type * terrain = r->terrain;
|
||||||
|
|
||||||
|
if (terrain->production==NULL) return;
|
||||||
for (i=0;terrain->production[i].type; ++i) {
|
for (i=0;terrain->production[i].type; ++i) {
|
||||||
rawmaterial *rm;
|
rawmaterial *rm;
|
||||||
const terrain_production * production = terrain->production+i;
|
const terrain_production * production = terrain->production+i;
|
||||||
|
|
Loading…
Reference in a new issue