aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormegamage <none@none>2009-03-31 17:10:23 -0600
committermegamage <none@none>2009-03-31 17:10:23 -0600
commitbd1a630463b4652e989f462cb7f2bc349e35ecea (patch)
treeabe1912004b3199c2086f1a6707ae771382dba39 /src
parentb91529fd8e97232d272cd609bc7d07730d24b2d1 (diff)
*Fix build.
--HG-- branch : trunk
Diffstat (limited to 'src')
-rw-r--r--src/game/ObjectGridLoader.cpp30
1 files changed, 0 insertions, 30 deletions
diff --git a/src/game/ObjectGridLoader.cpp b/src/game/ObjectGridLoader.cpp
index 9c36aa80f1a..e0982ccb44f 100644
--- a/src/game/ObjectGridLoader.cpp
+++ b/src/game/ObjectGridLoader.cpp
@@ -134,36 +134,6 @@ void LoadHelper(CellGuidSet const& guid_set, CellPair &cell, GridRefManager<T> &
}
}
-void LoadHelper(CellGuidSet const& guid_set, CellPair &cell, CreatureMapType &m, uint32 &count, Map* map)
-{
- for(CellGuidSet::const_iterator i_guid = guid_set.begin(); i_guid != guid_set.end(); ++i_guid)
- {
- Creature* obj = new Creature;
- uint32 guid = *i_guid;
- //sLog.outString("DEBUG: LoadHelper from table: %s for (guid: %u) Loading",table,guid);
- if(!obj->LoadFromDB(guid, map))
- {
- delete obj;
- obj = new Vehicle;
- if(!((Vehicle*)obj)->LoadFromDB(guid, map))
- {
- delete (Vehicle*)obj;
- continue;
- }
- }
-
- obj->GetGridRef().link(&m, obj);
-
- addUnitState(obj,cell);
- obj->AddToWorld();
- if(obj->isActiveObject())
- map->AddToActive(obj);
-
- ++count;
-
- }
-}
-
void LoadHelper(CellCorpseSet const& cell_corpses, CellPair &cell, CorpseMapType &m, uint32 &count, Map* map)
{
if(cell_corpses.empty())