Zufaelle trafen immer die letzte Einheit.

This commit is contained in:
Enno Rehling 2006-10-29 11:44:34 +00:00
parent fb63929d81
commit 22c6dd08a7
1 changed files with 1 additions and 1 deletions

View File

@ -437,7 +437,7 @@ encounters(void)
int n = rng_int() % c; int n = rng_int() % c;
for (u = r->units; u; u = u->next) { for (u = r->units; u; u = u->next) {
if (i+u->number>c) break; if (i+u->number>n) break;
} }
assert(u && u->number); assert(u && u->number);
encounter(r, u); encounter(r, u);