Skip to content

Commit

Permalink
Playerbot: Prevent double login while player is teleporting
Browse files Browse the repository at this point in the history
  • Loading branch information
mostlikely4r authored and davidonete committed Nov 14, 2024
1 parent a821cdf commit 4ac90cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/game/Entities/CharacterHandler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 4ac90cc

Please sign in to comment.