diff options
author | megamage <none@none> | 2009-03-31 14:08:38 -0600 |
---|---|---|
committer | megamage <none@none> | 2009-03-31 14:08:38 -0600 |
commit | b51cea6ce48295c3ebea9b2340d76a4ab147a6e5 (patch) | |
tree | 890561d68855a87936d8b4c8a0de6b4c0e20e8bc /src/game/OutdoorPvP.cpp | |
parent | 1fe8050b09d2d522ded639d4dacb2f354603b596 (diff) |
*Remove some code which may cause crash.
--HG--
branch : trunk
Diffstat (limited to 'src/game/OutdoorPvP.cpp')
-rw-r--r-- | src/game/OutdoorPvP.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/game/OutdoorPvP.cpp b/src/game/OutdoorPvP.cpp index acbc5979f84..0efa3bfdeaf 100644 --- a/src/game/OutdoorPvP.cpp +++ b/src/game/OutdoorPvP.cpp @@ -311,8 +311,8 @@ bool OutdoorPvPObjective::DelCreature(uint32 type) // explicit removal from map // beats me why this is needed, but with the recent removal "cleanup" some creatures stay in the map if "properly" deleted // so this is a big fat workaround, if AddObjectToRemoveList and DoDelayedMovesAndRemoves worked correctly, this wouldn't be needed - if(Map * map = MapManager::Instance().FindMap(cr->GetMapId())) - map->Remove(cr,false); + //if(Map * map = MapManager::Instance().FindMap(cr->GetMapId())) + // map->Remove(cr,false); // delete respawn time for this creature WorldDatabase.PExecute("DELETE FROM creature_respawn WHERE guid = '%u'", guid); cr->AddObjectToRemoveList(); @@ -369,8 +369,8 @@ bool OutdoorPvPObjective::DelCapturePoint() // explicit removal from map // beats me why this is needed, but with the recent removal "cleanup" some creatures stay in the map if "properly" deleted // so this is a big fat workaround, if AddObjectToRemoveList and DoDelayedMovesAndRemoves worked correctly, this wouldn't be needed - if(Map * map = MapManager::Instance().FindMap(cr->GetMapId())) - map->Remove(cr,false); + //if(Map * map = MapManager::Instance().FindMap(cr->GetMapId())) + // map->Remove(cr,false); // delete respawn time for this creature WorldDatabase.PExecute("DELETE FROM creature_respawn WHERE guid = '%u'", guid); cr->AddObjectToRemoveList(); |