division by zero error.

This commit is contained in:
Enno Rehling 2002-02-03 02:40:37 +00:00
parent d47f80df16
commit 7bed85420b
1 changed files with 1 additions and 0 deletions

View File

@ -2556,6 +2556,7 @@ peasant_adjustment(void)
if(lifestyle(u) > 0) sum += u->number; if(lifestyle(u) > 0) sum += u->number;
} }
} }
if (c==0) continue;
avg = sum/c; avg = sum/c;
for(r=regions; r; r=r->next) if(rterrain(r) == ter) { for(r=regions; r; r=r->next) if(rterrain(r) == ter) {