From 4ac90ccc221f6ed0508f7a087336f2eb7974c5fd Mon Sep 17 00:00:00 2001 From: mostlikely4r Date: Wed, 13 Nov 2024 15:17:58 +0100 Subject: [PATCH] Playerbot: Prevent double login while player is teleporting --- src/game/Entities/CharacterHandler.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/game/Entities/CharacterHandler.cpp b/src/game/Entities/CharacterHandler.cpp index 9c131020fe6..7d6f505b8fb 100644 --- a/src/game/Entities/CharacterHandler.cpp +++ b/src/game/Entities/CharacterHandler.cpp @@ -124,7 +124,7 @@ void PlayerbotHolder::HandlePlayerBotLoginCallback(QueryResult* dummy, SqlQueryH botSession->SetNoAnticheat(); // has bot already been added? - if (sObjectMgr.GetPlayer(lqh->GetGuid())) + if (sObjectMgr.GetPlayer(lqh->GetGuid(), false)) return; uint32 guid = lqh->GetGuid().GetRawValue();