Scripts and sessions update to align with acore (#987)

This commit is contained in:
Yunfan Li
2025-02-22 12:08:53 +08:00
committed by GitHub
parent a44650c7f6
commit 62e0235e73
4 changed files with 15 additions and 28 deletions

View File

@@ -6,6 +6,7 @@
#include "PlayerbotTextMgr.h"
#include "Playerbots.h"
#include "WorldSessionMgr.h"
void PlayerbotTextMgr::replaceAll(std::string& str, const std::string& from, const std::string& to)
{
@@ -184,7 +185,7 @@ uint32 PlayerbotTextMgr::GetLocalePriority()
uint32 topLocale = 0;
// if no real players online, reset top locale
if (!sWorld->GetActiveSessionCount())
if (!sWorldSessionMgr->GetActiveSessionCount())
{
ResetLocalePriority();
return 0;