forked from github/server
Zufaelle trafen immer die letzte Einheit.
This commit is contained in:
parent
fb63929d81
commit
22c6dd08a7
|
@ -437,7 +437,7 @@ encounters(void)
|
|||
int n = rng_int() % c;
|
||||
|
||||
for (u = r->units; u; u = u->next) {
|
||||
if (i+u->number>c) break;
|
||||
if (i+u->number>n) break;
|
||||
}
|
||||
assert(u && u->number);
|
||||
encounter(r, u);
|
||||
|
|
Loading…
Reference in New Issue