mirror of
https://github.com/EQEmu/Server.git
synced 2026-03-24 15:52:26 +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))
|
if (!RuleB(Character, MarqueeHPUpdates))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
if (!this || !this->IsClient() || !this->cur_hp || !this->max_hp)
|
||||||
|
return;
|
||||||
|
|
||||||
/* Health Update Marquee Display: Custom*/
|
/* Health Update Marquee Display: Custom*/
|
||||||
uint32 health_percentage = (uint32)(this->cur_hp * 100 / this->max_hp);
|
uint32 health_percentage = (uint32)(this->cur_hp * 100 / this->max_hp);
|
||||||
if (health_percentage == 100)
|
if (health_percentage == 100)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user