rosthauch mit force==0 crashes

This commit is contained in:
Enno Rehling 2009-11-08 03:34:40 +00:00
parent cb88302668
commit 26b131b18d
1 changed files with 3 additions and 2 deletions

View File

@ -1288,8 +1288,9 @@ sp_rosthauch(castorder *co)
#endif
}
force = rng_int()%((int)(force * 10)) + force;
if (force>0) {
force = rng_int()%((int)(force * 10)) + force;
}
/* fuer jede Einheit */
for (n = 0; n < pa->length; n++) {
unit *u = pa->param[n]->data.u;