Skip to content

Commit f88dedd

Browse files
committed
cleanup
1 parent 54dd4d3 commit f88dedd

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

src/server/game/Maps/Map.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -288,8 +288,8 @@ i_scriptLock(false), _respawnTimes(std::make_unique<RespawnListContainer>()), _r
288288
if (sElunaConfig->IsElunaEnabled() && sElunaConfig->ShouldMapLoadEluna(id))
289289
if (!IsParentMap() || (IsParentMap() && !Instanceable()))
290290
{
291-
elunaInfo.key = ElunaInfoKey::MakeKey(GetId(), GetInstanceId());
292-
sElunaMgr->Create(this, elunaInfo);
291+
_elunaInfo = { ElunaInfoKey::MakeKey(GetId(), GetInstanceId()) };
292+
sElunaMgr->Create(this, _elunaInfo);
293293
}
294294
#endif
295295
for (unsigned int idx=0; idx < MAX_NUMBER_OF_GRIDS; ++idx)

src/server/game/Maps/Map.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -789,7 +789,7 @@ class TC_GAME_API Map : public GridRefManager<NGridType>
789789
void AddFarSpellCallback(FarSpellCallback&& callback);
790790
bool IsParentMap() const { return GetParent() == this; }
791791
#ifdef ELUNA
792-
Eluna* GetEluna() const { return sElunaMgr->Get(elunaInfo.key); }
792+
Eluna* GetEluna() const { return sElunaMgr->Get(_elunaInfo); }
793793
LuaVal lua_data = LuaVal({});
794794
#endif
795795
private:
@@ -872,7 +872,7 @@ class TC_GAME_API Map : public GridRefManager<NGridType>
872872

873873
MPSCQueue<FarSpellCallback> _farSpellCallbacks;
874874
#ifdef ELUNA
875-
ElunaInfo elunaInfo;
875+
ElunaInfo _elunaInfo;
876876
#endif
877877
};
878878

src/server/game/World/World.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2131,8 +2131,8 @@ void World::SetInitialWorldSettings()
21312131
if (sElunaConfig->IsElunaEnabled())
21322132
{
21332133
TC_LOG_INFO("server.loading", "Starting Eluna world state...");
2134-
elunaInfo.key = ElunaInfoKey::MakeGlobalKey(0);
2135-
sElunaMgr->Create(nullptr, elunaInfo);
2134+
_elunaInfo = { ElunaInfoKey::MakeGlobalKey(0) };
2135+
sElunaMgr->Create(nullptr, _elunaInfo);
21362136
}
21372137
#endif
21382138

src/server/game/World/World.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -778,7 +778,7 @@ class TC_GAME_API World
778778
bool IsGuidAlert() { return _guidAlert; }
779779

780780
#ifdef ELUNA
781-
Eluna* GetEluna() const { return sElunaMgr->Get(elunaInfo.key); }
781+
Eluna* GetEluna() const { return sElunaMgr->Get(_elunaInfo); }
782782
#endif
783783
protected:
784784
void _UpdateGameTime();
@@ -894,7 +894,7 @@ class TC_GAME_API World
894894
uint32 _warnDiff;
895895
time_t _warnShutdownTime;
896896
#ifdef ELUNA
897-
ElunaInfo elunaInfo;
897+
ElunaInfo _elunaInfo;
898898
#endif
899899
friend class debug_commandscript;
900900
};

0 commit comments

Comments
 (0)