mirror of
https://github.com/EQEmu/Server.git
synced 2026-02-14 02:32:25 +00:00
Added pointer check
This commit is contained in:
parent
eb33e8ae11
commit
84f99b6d6b
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user