Skip to content

Commit

Permalink
fix build (#197)
Browse files Browse the repository at this point in the history
  • Loading branch information
Nyeriah authored Feb 14, 2025
1 parent e7ff24c commit 17a4184
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/Transmogrification.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
#include "DatabaseEnv.h"
#include "SpellMgr.h"
#include "Tokenize.h"
#include "WorldSessionMgr.h"

Transmogrification* Transmogrification::instance()
{
Expand Down Expand Up @@ -1079,10 +1080,10 @@ void Transmogrification::LoadConfig(bool reload)

if (reload) // dont store presets for nothing
{
SessionMap const& sessions = sWorld->GetAllSessions();
for (SessionMap::const_iterator it = sessions.begin(); it != sessions.end(); ++it)
auto const& sessions = sWorldSessionMgr->GetAllSessions();
for (auto const& session : sessions)
{
if (Player* player = it->second->GetPlayer())
if (Player* player = session.second->GetPlayer())
{
// skipping session check
UnloadPlayerSets(player->GetGUID());
Expand Down

0 comments on commit 17a4184

Please sign in to comment.