From 75a71c36aae902a8bcdfc5cb62dba5081cc482d2 Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Tue, 22 Oct 2019 18:46:00 +0200 Subject: [PATCH] ZERSTOERE Schiffe evtl. auch richtig? Best effort. --- src/kernel/build.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/kernel/build.c b/src/kernel/build.c index 29dfc81f0..d9e1cc8bc 100644 --- a/src/kernel/build.c +++ b/src/kernel/build.c @@ -239,7 +239,7 @@ int destroy_cmd(unit * u, struct order *ord) } else { /* partial destroy */ - sh->size -= (sh->type->construction->maxsize * n) / 100; + sh->size -= (ship_maxsize(sh) * n) / 100; ADDMSG(&u->faction->msgs, msg_message("shipdestroy_partial", "unit region ship", u, r, sh)); }