[11134] Make GCC happy and restore build at *nix.

This commit is contained in:
VladimirMangos 2011-02-11 18:10:51 +03:00
parent da1b616312
commit 3bfe4bbd3b
4 changed files with 5 additions and 4 deletions

View file

@ -1374,7 +1374,8 @@ void Creature::DeleteFromDB()
return; return;
} }
sMapPersistentStateMgr.DoForAllStatesWithMapId(GetMapId(), CreatureRespawnDeleteWorker(m_DBTableGuid)); CreatureRespawnDeleteWorker worker (m_DBTableGuid);
sMapPersistentStateMgr.DoForAllStatesWithMapId(GetMapId(), worker);
sObjectMgr.DeleteCreatureData(m_DBTableGuid); sObjectMgr.DeleteCreatureData(m_DBTableGuid);

View file

@ -639,7 +639,8 @@ void GameObject::DeleteFromDB()
return; return;
} }
sMapPersistentStateMgr.DoForAllStatesWithMapId(GetMapId(), GameObjectRespawnDeleteWorker(m_DBTableGuid)); GameObjectRespawnDeleteWorker worker(m_DBTableGuid);
sMapPersistentStateMgr.DoForAllStatesWithMapId(GetMapId(), worker);
sObjectMgr.DeleteGOData(m_DBTableGuid); sObjectMgr.DeleteGOData(m_DBTableGuid);
WorldDatabase.PExecuteLog("DELETE FROM gameobject WHERE guid = '%u'", m_DBTableGuid); WorldDatabase.PExecuteLog("DELETE FROM gameobject WHERE guid = '%u'", m_DBTableGuid);

View file

@ -188,7 +188,6 @@ inline void MapManager::DoForAllMapsWithMapId(uint32 mapId, Do& _do)
_do(itr->second); _do(itr->second);
} }
#define sMapMgr MapManager::Instance() #define sMapMgr MapManager::Instance()
#endif #endif

View file

@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__ #ifndef __REVISION_NR_H__
#define __REVISION_NR_H__ #define __REVISION_NR_H__
#define REVISION_NR "11133" #define REVISION_NR "11134"
#endif // __REVISION_NR_H__ #endif // __REVISION_NR_H__