From c33ccb138ff0c414c6253e4bd9907505389bf610 Mon Sep 17 00:00:00 2001 From: Akkadius Date: Tue, 12 Apr 2016 23:49:44 -0500 Subject: [PATCH] Fix for marquee's crashing clients on zone --- zone/client.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/zone/client.cpp b/zone/client.cpp index c280b825e..d07de3016 100644 --- a/zone/client.cpp +++ b/zone/client.cpp @@ -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)