mirror of
https://github.com/EQEmu/Server.git
synced 2026-02-19 15:52:25 +00:00
Fix for marquee's crashing clients on zone
This commit is contained in:
parent
9673d8c34d
commit
c33ccb138f
@ -8705,6 +8705,9 @@ void Client::SendHPUpdateMarquee(){
|
||||
if (!RuleB(Character, MarqueeHPUpdates))
|
||||
return;
|
||||
|
||||
if (!this || !this->IsClient() || !this->cur_hp || !this->max_hp)
|
||||
return;
|
||||
|
||||
/* Health Update Marquee Display: Custom*/
|
||||
uint32 health_percentage = (uint32)(this->cur_hp * 100 / this->max_hp);
|
||||
if (health_percentage == 100)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user