mirror of
https://github.com/EQEmu/Server.git
synced 2026-08-30 17:58:16 +00:00
[Crash] Fix out of bound arrays, other potential crashes (#3166)
This commit is contained in:
+2
-1
@@ -904,8 +904,9 @@ bool Mob::IsBeneficialAllowed(Mob *target)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
else if(mob2->IsBot())
|
||||
else if (mob2 && mob2->IsBot()) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
else if(_NPC(mob1))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user