Added pointer check

This commit is contained in:
Michael Cook (mackal) 2014-05-05 15:48:19 -04:00
parent eb33e8ae11
commit 84f99b6d6b

View File

@ -5051,6 +5051,8 @@ void Mob::ProcessSpecialAbilities(const std::string str) {
// if anything seems weird, blame SoE // if anything seems weird, blame SoE
bool Mob::IsFacingMob(Mob *other) bool Mob::IsFacingMob(Mob *other)
{ {
if (!other)
return false;
float angle = HeadingAngleToMob(other); float angle = HeadingAngleToMob(other);
// what the client uses appears to be 2x our internal heading // what the client uses appears to be 2x our internal heading
float heading = GetHeading() * 2.0; float heading = GetHeading() * 2.0;