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
commit 7dcf13875e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -53,7 +53,7 @@ bool QuestAction::Execute(Event event)
} }
// Checks the nearest game objects // 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) for (const auto& go : gos)
{ {
GameObject* gameobj = botAI->GetGameObject(go); GameObject* gameobj = botAI->GetGameObject(go);