mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-22 19:31:29 +00:00
Fix issue with overflow in Mob::SendHPUpdate
This commit is contained in:
parent
feefd7a23b
commit
43df845233
@ -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,
|
Log(Logs::General,
|
||||||
Logs::HPUpdate,
|
Logs::HPUpdate,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user