mirror of
https://github.com/EQEmu/Server.git
synced 2026-03-03 02:52:26 +00:00
Safely access IsProximitySet
This commit is contained in:
parent
9059efe98e
commit
82d2843d92
@ -2880,5 +2880,9 @@ float NPC::GetProximityMaxZ()
|
|||||||
|
|
||||||
bool NPC::IsProximitySet()
|
bool NPC::IsProximitySet()
|
||||||
{
|
{
|
||||||
return proximity->proximity_set;
|
if (proximity && proximity->proximity_set) {
|
||||||
|
return proximity->proximity_set;
|
||||||
|
}
|
||||||
|
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user