hp=0 -> hp==0

This commit is contained in:
Enno Rehling 2002-01-20 11:27:05 +00:00
parent ea98fd5c55
commit 35867d3a5c
1 changed files with 4 additions and 1 deletions

View File

@ -2124,7 +2124,10 @@ writegame(char *path, char quiet)
wnl(F); wnl(F);
write_items(F, u->items); write_items(F, u->items);
wnl(F); wnl(F);
if(u->hp = 0) u->hp = 1; if (u->hp == 0) {
log_error(("Einheit %s hat 0 Trefferpunkte\n", itoa36(u->no)));
u->hp = 1;
}
wi(F, u->hp); wi(F, u->hp);
wnl(F); wnl(F);
#if RELEASE_VERSION < MAGE_ATTRIB_VERSION #if RELEASE_VERSION < MAGE_ATTRIB_VERSION