mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-02-03 02:53:48 +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);
|
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)
|
||||||
if (IsAIEnabled)
|
AI()->IsSummonedBy(owner);
|
||||||
AI()->IsSummonedBy(owner);
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void TempSummon::SetTempSummonType(TempSummonType type)
|
void TempSummon::SetTempSummonType(TempSummonType type)
|
||||||
|
|||||||
Reference in New Issue
Block a user