Core: Corrected NULL usage, it should only be used with pointers, not integers

This commit is contained in:
Shauren committed 2011-04-23 15:53:48 +02:00
1 parent a2a751b9d6
commit 8898db8b27
56 files changed
+216 -217

No files matched your search

+2 -2
View File
@@ -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)