mirror of
https://github.com/EQEmu/Server.git
synced 2026-10-08 01:13:35 +00:00
Safely access IsProximitySet
This commit is contained in:
1 parent
9059efe98e
commit
82d2843d92
1 file changed
+5
-1
+5
-1
@@ -2880,5 +2880,9 @@ float NPC::GetProximityMaxZ()
|
||||
|
||||
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