From 530707f5da735aa5d0b0b24039120261b13e90a7 Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Sun, 20 Oct 2002 08:57:37 +0000 Subject: [PATCH] Bugfix Einheiten mit zu wenigen HP --- src/common/kernel/save.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/common/kernel/save.c b/src/common/kernel/save.c index 6959ee478..ad9832431 100644 --- a/src/common/kernel/save.c +++ b/src/common/kernel/save.c @@ -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){