mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-13 09:17:18 +00:00
fix(Core/SmartAI) Fix null reference when summoning (#14812)
This commit is contained in:
@@ -269,11 +269,10 @@ void TempSummon::InitSummon()
|
||||
owner->ToGameObject()->AI()->JustSummoned(this);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Xinef: Allow to call this hook when npc is summoned by gameobject, in this case pass this as summoner to avoid possible null checks
|
||||
if (IsAIEnabled)
|
||||
AI()->IsSummonedBy(owner);
|
||||
if (IsAIEnabled)
|
||||
AI()->IsSummonedBy(owner);
|
||||
}
|
||||
}
|
||||
|
||||
void TempSummon::SetTempSummonType(TempSummonType type)
|
||||
|
||||
Reference in New Issue
Block a user