Bugfix Einheiten mit zu wenigen HP

This commit is contained in:
Enno Rehling 2002-10-20 08:57:37 +00:00
parent 0997aca643
commit 530707f5da
1 changed files with 6 additions and 1 deletions

View File

@ -1629,7 +1629,12 @@ readunit(FILE * F)
}
}
u->hp = ri(F);
/* assert(u->hp >= u->number); */
if (u->hp < u->number) {
log_error(("Einheit %s hat %u Personen, und %u Trefferpunkte\n", itoa36(u->no),
u->number, u->hp));
u->hp=u->number;
}
if (global.data_version < MAGE_ATTRIB_VERSION) {
int i = ri(F);
if (i != -1){