Fixed possible bot crashes due to nullptr conflict.

This commit is contained in:
Kinglykrab
2015-06-18 23:42:59 -04:00
parent b1829e929e
commit de81850dd9
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -4249,7 +4249,7 @@ void Mob::TryCriticalHit(Mob *defender, uint16 skill, int32 &damage, ExtraAttack
}
#ifdef BOTS
if (this->IsPet() && this->GetOwner()->IsBot()) {
if (this->IsPet() && this->GetOwner() && this->GetOwner()->IsBot()) {
this->TryPetCriticalHit(defender,skill,damage);
return;
}