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 killerwife committed Nov 13, 2024
1 parent 699b2ca commit e77b0a5
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 @@ -123,7 +123,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 e77b0a5

Please sign in to comment.