mirror of
https://github.com/EQEmu/Server.git
synced 2026-11-27 12:32:17 +00:00
Fixed possible bot crashes due to nullptr conflict.
This commit is contained in:
1 parent
b1829e929e
commit
de81850dd9
2 files changed
+2
-2
No files matched your search
+1
-1
@@ -1105,7 +1105,7 @@ void Mob::AI_Process() {
|
||||
}
|
||||
|
||||
#ifdef BOTS
|
||||
if (IsPet() && GetOwner()->IsBot() && target == GetOwner())
|
||||
if (IsPet() && GetOwner() && GetOwner()->IsBot() && target == GetOwner())
|
||||
{
|
||||
// this blocks all pet attacks against owner..bot pet test (copied above check)
|
||||
RemoveFromHateList(this);
|
||||
|
||||
Reference in new issue
Block a user