Merge pull request #879 from liyunfan1223/fix_crash_talk

Fix talk crash by correcting "nearest game objects"
This commit is contained in:
Yunfan Li
2025-01-19 17:53:03 +08:00
committed by GitHub

View File

@@ -53,7 +53,7 @@ bool QuestAction::Execute(Event event)
}
// Checks the nearest game objects
std::list<ObjectGuid> gos = AI_VALUE(std::list<ObjectGuid>, "nearest game objects");
GuidVector gos = AI_VALUE(GuidVector, "nearest game objects");
for (const auto& go : gos)
{
GameObject* gameobj = botAI->GetGameObject(go);