File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 3
3
#include " DatabaseEnv.h"
4
4
#include " SpellMgr.h"
5
5
#include " Tokenize.h"
6
+ #include " WorldSessionMgr.h"
6
7
7
8
Transmogrification* Transmogrification::instance ()
8
9
{
@@ -1079,10 +1080,10 @@ void Transmogrification::LoadConfig(bool reload)
1079
1080
1080
1081
if (reload) // dont store presets for nothing
1081
1082
{
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)
1084
1085
{
1085
- if (Player* player = it-> second ->GetPlayer ())
1086
+ if (Player* player = session. second ->GetPlayer ())
1086
1087
{
1087
1088
// skipping session check
1088
1089
UnloadPlayerSets (player->GetGUID ());
You can’t perform that action at this time.
0 commit comments