Attempt to fix crash in playerbot logout

This commit is contained in:
郑佩茹
2022-03-30 09:31:47 -06:00
parent 5c81a2d5e8
commit 297f11d3e5

View File

@@ -254,6 +254,9 @@ void PlayerbotHolder::LogoutPlayerBot(ObjectGuid guid)
target = botAI->GetAiObjectContext()->GetValue<TravelTarget*>("travel target")->Get();
}
// Peiru: Allow bots to always instant logout to see if this resolves logout crashes
logout = true;
// if no instant logout, request normal logout
if (!logout)
{