mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-31 04:56:20 +00:00
Safely access IsProximitySet
This commit is contained in:
+5
-1
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user