mirror of
https://github.com/mod-playerbots/mod-playerbots
synced 2025-11-29 15:58:20 +08:00
Scripts and sessions update to align with acore (#987)
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user