prevent an error when empty units get zombified to protect magic item loss

This commit is contained in:
Enno Rehling 2014-12-07 11:14:41 +01:00
parent 3dd3761acd
commit 7d5280196a
1 changed files with 1 additions and 0 deletions

View File

@ -239,6 +239,7 @@ void make_zombie(unit * u)
{ {
u_setfaction(u, get_monsters()); u_setfaction(u, get_monsters());
scale_number(u, 1); scale_number(u, 1);
u->hp = unit_max_hp(u) * u->number;
u_setrace(u, get_race(RC_ZOMBIE)); u_setrace(u, get_race(RC_ZOMBIE));
u->irace = NULL; u->irace = NULL;
} }