mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-02-10 03:59:05 +01:00
Core: Corrected NULL usage, it should only be used with pointers, not integers
This commit is contained in:
@@ -328,7 +328,7 @@ void MapManager::UnloadAll()
|
||||
|
||||
uint32 MapManager::GetNumInstances()
|
||||
{
|
||||
ACE_GUARD_RETURN(ACE_Thread_Mutex, Guard, Lock, NULL);
|
||||
ACE_GUARD_RETURN(ACE_Thread_Mutex, Guard, Lock, 0);
|
||||
|
||||
uint32 ret = 0;
|
||||
for (MapMapType::iterator itr = i_maps.begin(); itr != i_maps.end(); ++itr)
|
||||
@@ -345,7 +345,7 @@ uint32 MapManager::GetNumInstances()
|
||||
|
||||
uint32 MapManager::GetNumPlayersInInstances()
|
||||
{
|
||||
ACE_GUARD_RETURN(ACE_Thread_Mutex, Guard, Lock, NULL);
|
||||
ACE_GUARD_RETURN(ACE_Thread_Mutex, Guard, Lock, 0);
|
||||
|
||||
uint32 ret = 0;
|
||||
for (MapMapType::iterator itr = i_maps.begin(); itr != i_maps.end(); ++itr)
|
||||
|
||||
Reference in New Issue
Block a user