From 4790950daf97f21092a216479fa481d28d833ccb Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Mon, 9 Nov 2015 16:39:30 +0100 Subject: [PATCH] spells are allowed to have 0 hp https://bugs.eressea.de/view.php?id=2150 --- src/kernel/save.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/kernel/save.c b/src/kernel/save.c index 201b710aa..beda42747 100644 --- a/src/kernel/save.c +++ b/src/kernel/save.c @@ -812,7 +812,7 @@ void write_unit(struct gamedata *data, const unit * u) WRITE_SECTION(data->store); write_items(data->store, u->items); WRITE_SECTION(data->store); - if (u->hp == 0) { + if (u->hp == 0 && u_race(u)!= get_race(RC_SPELL)) { log_error("unit %s has 0 hitpoints, adjusting.\n", itoa36(u->no)); ((unit *)u)->hp = u->number; }