[Crash fix] Duplicate loading bot

This commit is contained in:
Yunfan Li
2024-08-19 23:31:32 +08:00
parent 47f8eb3e4a
commit e983f9be00
2 changed files with 12 additions and 16 deletions

View File

@@ -7,6 +7,7 @@
#define _PLAYERBOT_PLAYERBOTMGR_H
#include "Common.h"
#include "ObjectGuid.h"
#include "Player.h"
#include "PlayerbotAIBase.h"
#include "QueryHolder.h"
@@ -57,6 +58,7 @@ protected:
virtual void OnBotLoginInternal(Player* const bot) = 0;
PlayerBotMap playerBots;
std::unordered_set<ObjectGuid> botLoading;
};
class PlayerbotMgr : public PlayerbotHolder