forked from github/server
division by zero error.
This commit is contained in:
parent
d47f80df16
commit
7bed85420b
|
@ -2556,6 +2556,7 @@ peasant_adjustment(void)
|
|||
if(lifestyle(u) > 0) sum += u->number;
|
||||
}
|
||||
}
|
||||
if (c==0) continue;
|
||||
avg = sum/c;
|
||||
|
||||
for(r=regions; r; r=r->next) if(rterrain(r) == ter) {
|
||||
|
|
Loading…
Reference in New Issue