mirror of
https://github.com/mangosfour/server.git
synced 2025-12-15 19:37:02 +00:00
[11134] Make GCC happy and restore build at *nix.
This commit is contained in:
parent
da1b616312
commit
3bfe4bbd3b
4 changed files with 5 additions and 4 deletions
|
|
@ -1374,7 +1374,8 @@ void Creature::DeleteFromDB()
|
|||
return;
|
||||
}
|
||||
|
||||
sMapPersistentStateMgr.DoForAllStatesWithMapId(GetMapId(), CreatureRespawnDeleteWorker(m_DBTableGuid));
|
||||
CreatureRespawnDeleteWorker worker (m_DBTableGuid);
|
||||
sMapPersistentStateMgr.DoForAllStatesWithMapId(GetMapId(), worker);
|
||||
|
||||
sObjectMgr.DeleteCreatureData(m_DBTableGuid);
|
||||
|
||||
|
|
|
|||
|
|
@ -639,7 +639,8 @@ void GameObject::DeleteFromDB()
|
|||
return;
|
||||
}
|
||||
|
||||
sMapPersistentStateMgr.DoForAllStatesWithMapId(GetMapId(), GameObjectRespawnDeleteWorker(m_DBTableGuid));
|
||||
GameObjectRespawnDeleteWorker worker(m_DBTableGuid);
|
||||
sMapPersistentStateMgr.DoForAllStatesWithMapId(GetMapId(), worker);
|
||||
|
||||
sObjectMgr.DeleteGOData(m_DBTableGuid);
|
||||
WorldDatabase.PExecuteLog("DELETE FROM gameobject WHERE guid = '%u'", m_DBTableGuid);
|
||||
|
|
|
|||
|
|
@ -188,7 +188,6 @@ inline void MapManager::DoForAllMapsWithMapId(uint32 mapId, Do& _do)
|
|||
_do(itr->second);
|
||||
}
|
||||
|
||||
|
||||
#define sMapMgr MapManager::Instance()
|
||||
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#ifndef __REVISION_NR_H__
|
||||
#define __REVISION_NR_H__
|
||||
#define REVISION_NR "11133"
|
||||
#define REVISION_NR "11134"
|
||||
#endif // __REVISION_NR_H__
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue