crashbug preferre_weapon==0

This commit is contained in:
Enno Rehling 2004-08-07 21:42:05 +00:00
parent 14f50e3b3d
commit a8b46dfc4b
1 changed files with 2 additions and 3 deletions

View File

@ -2189,14 +2189,13 @@ do_attack(fighter * af)
if (au->race->attack[a].type!=AT_STANDARD) continue;
else {
weapon * wp = preferred_weapon(ta, true);
if (wp->type->reload) continue;
if (wp!=NULL && wp->type->reload) continue;
}
}
attack(b, ta, &(au->race->attack[a]));
}
}
}
}
void