mirror of
https://github.com/vcmi/vcmi.git
synced 2025-06-15 00:05:02 +02:00
fixed resurrection corner case
This commit is contained in:
@ -219,7 +219,7 @@ void CHealth::setFromTotal(const int64_t totalHealth)
|
||||
firstHPleft = totalHealth % unitHealth;
|
||||
fullUnits = totalHealth / unitHealth;
|
||||
|
||||
if(firstHPleft == 0 && fullUnits > 1)
|
||||
if(firstHPleft == 0 && fullUnits >= 1)
|
||||
{
|
||||
firstHPleft = unitHealth;
|
||||
fullUnits -= 1;
|
||||
|
Reference in New Issue
Block a user