File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -95,7 +95,7 @@ extern void LoadGameObjectModelList();
9595
9696volatile bool World::m_stopEvent = false ;
9797uint8 World::m_ExitCode = SHUTDOWN_EXIT_CODE;
98- volatile uint32 World::m_worldLoopCounter = 0 ;
98+ std::atomic< uint32> World::m_worldLoopCounter = 0 ;
9999
100100float World::m_MaxVisibleDistanceOnContinents = DEFAULT_VISIBILITY_DISTANCE;
101101float World::m_MaxVisibleDistanceInInstances = DEFAULT_VISIBILITY_INSTANCE;
Original file line number Diff line number Diff line change 4141#include < utility>
4242#include < vector>
4343#include < array>
44+ #include < atomic>
4445
4546class Object ;
4647class ObjectGuid ;
@@ -392,7 +393,7 @@ struct CliCommandHolder
392393class World
393394{
394395 public:
395- static volatile uint32 m_worldLoopCounter;
396+ static std::atomic< uint32> m_worldLoopCounter;
396397
397398 World ();
398399 ~World ();
You can’t perform that action at this time.
0 commit comments