mirror of
https://github.com/EQEmu/Server.git
synced 2026-02-14 10:52: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
|
// 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;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user