From 297f11d3e59f52a29f68188245e6b786c9fa838e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=83=91=E4=BD=A9=E8=8C=B9?= Date: Wed, 30 Mar 2022 09:31:47 -0600 Subject: [PATCH] Attempt to fix crash in playerbot logout --- src/PlayerbotMgr.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/PlayerbotMgr.cpp b/src/PlayerbotMgr.cpp index 055a3bce..7527793a 100644 --- a/src/PlayerbotMgr.cpp +++ b/src/PlayerbotMgr.cpp @@ -254,6 +254,9 @@ void PlayerbotHolder::LogoutPlayerBot(ObjectGuid guid) target = botAI->GetAiObjectContext()->GetValue("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) {