From 38922d92057da855b186fcf092abb70c6748f8e6 Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Sat, 25 Nov 2017 11:29:52 +0100 Subject: [PATCH] on the Rapsberry Pi, long is only 32 bit --- src/kernel/unit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/kernel/unit.c b/src/kernel/unit.c index a3e6fc1ac..9b024851b 100644 --- a/src/kernel/unit.c +++ b/src/kernel/unit.c @@ -1063,7 +1063,7 @@ void clone_men(const unit * u, unit * dst, int n) transfer_curse(u, dst, n); } set_number(dst, dst->number + n); - dst->hp += (long)u->hp * n / u->number; + dst->hp += (long long)u->hp * n / u->number; assert(dst->hp >= dst->number); /* TODO: Das ist schnarchlahm! und gehoert nicht hierhin */ a = a_find(dst->attribs, &at_effect);