From 84f99b6d6b47f9c38016a8dadc573ea992425ddf Mon Sep 17 00:00:00 2001 From: "Michael Cook (mackal)" Date: Mon, 5 May 2014 15:48:19 -0400 Subject: [PATCH] Added pointer check --- zone/mob.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/zone/mob.cpp b/zone/mob.cpp index cef5bd605..c2cf34650 100644 --- a/zone/mob.cpp +++ b/zone/mob.cpp @@ -5051,6 +5051,8 @@ void Mob::ProcessSpecialAbilities(const std::string str) { // if anything seems weird, blame SoE bool Mob::IsFacingMob(Mob *other) { + if (!other) + return false; float angle = HeadingAngleToMob(other); // what the client uses appears to be 2x our internal heading float heading = GetHeading() * 2.0;