Fix issue with overflow in Mob::SendHPUpdate

This commit is contained in:
Michael Cook (mackal) 2020-01-18 21:42:51 -05:00
parent feefd7a23b
commit 43df845233

View File

@ -1369,7 +1369,7 @@ void Mob::SendHPUpdate(bool skip_self /*= false*/, bool force_update_all /*= fal
}
}
int8 current_hp_percent = static_cast<int8>(max_hp == 0 ? 0 : static_cast<int>(current_hp * 100 / max_hp));
auto current_hp_percent = GetIntHPRatio();
Log(Logs::General,
Logs::HPUpdate,