on the Rapsberry Pi, long is only 32 bit

This commit is contained in:
Enno Rehling 2017-11-25 11:29:52 +01:00
parent f8f8f8f43f
commit 85306165d6
1 changed files with 1 additions and 1 deletions

View File

@ -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);