sometimes monsters have heroes, too

This commit is contained in:
Enno Rehling 2010-09-26 01:06:46 +02:00
parent fbb3234bee
commit 0d653ec2bf
1 changed files with 3 additions and 1 deletions

View File

@ -2089,7 +2089,9 @@ make_heroes(battle * b)
unit * u = fig->unit;
if (fval(u, UFL_HERO)) {
int i;
assert(playerrace(u->race));
if (!playerrace(u->race)) {
log_error(("Hero %s is a %s.\n", unitname(u), u->race->_name[0]));
}
for (i=0;i!=u->number;++i) {
fig->person[i].speed += (hero_speed-1);
}