Skip to content

Commit 17a4184

Browse files
authored
fix build (#197)
1 parent e7ff24c commit 17a4184

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/Transmogrification.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
#include "DatabaseEnv.h"
44
#include "SpellMgr.h"
55
#include "Tokenize.h"
6+
#include "WorldSessionMgr.h"
67

78
Transmogrification* Transmogrification::instance()
89
{
@@ -1079,10 +1080,10 @@ void Transmogrification::LoadConfig(bool reload)
10791080

10801081
if (reload) // dont store presets for nothing
10811082
{
1082-
SessionMap const& sessions = sWorld->GetAllSessions();
1083-
for (SessionMap::const_iterator it = sessions.begin(); it != sessions.end(); ++it)
1083+
auto const& sessions = sWorldSessionMgr->GetAllSessions();
1084+
for (auto const& session : sessions)
10841085
{
1085-
if (Player* player = it->second->GetPlayer())
1086+
if (Player* player = session.second->GetPlayer())
10861087
{
10871088
// skipping session check
10881089
UnloadPlayerSets(player->GetGUID());

0 commit comments

Comments
 (0)