aboutsummaryrefslogtreecommitdiff
path: root/src/game/Level2.cpp
diff options
context:
space:
mode:
authormegamage <none@none>2009-07-01 18:23:36 -0500
committermegamage <none@none>2009-07-01 18:23:36 -0500
commit111dac5f94eac3fe26da2107842dea4e1aacd660 (patch)
tree94749b7199a4f0bb2f2826824261e49a85f84082 /src/game/Level2.cpp
parent9a2588a454af73fb1f6c456275ba07e6acc24d11 (diff)
[8102] Simplify code base at new root method WorldObject::CleanupsBeforeDelete Author: VladimirMangos
* Call it from Map::AddObjectToRemoveList and remove now not needed explcit calls * Create Gameobject version to make GO with owner more safe for remove --HG-- branch : trunk
Diffstat (limited to 'src/game/Level2.cpp')
-rw-r--r--src/game/Level2.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/game/Level2.cpp b/src/game/Level2.cpp
index fc7dc8b1618..75bd8357200 100644
--- a/src/game/Level2.cpp
+++ b/src/game/Level2.cpp
@@ -1377,7 +1377,6 @@ bool ChatHandler::HandleNpcDeleteCommand(const char* args)
// Delete the creature
unit->CombatStop();
unit->DeleteFromDB();
- unit->CleanupsBeforeDelete();
unit->AddObjectToRemoveList();
SendSysMessage(LANG_COMMAND_DELCREATMESSAGE);
@@ -3449,7 +3448,6 @@ bool ChatHandler::HandleWpShowCommand(const char* args)
Field *fields = result->Fetch();
uint32 guid = fields[0].GetUInt32();
Creature* pCreature = m_session->GetPlayer()->GetMap()->GetCreature(MAKE_NEW_GUID(guid,VISUAL_WAYPOINT,HIGHGUID_UNIT));
-
if(!pCreature)
{
PSendSysMessage(LANG_WAYPOINT_NOTREMOVED, guid);