From 5b481d36bf1ad4789f8ae664c59b96beea7684c9 Mon Sep 17 00:00:00 2001 From: leak Date: Thu, 10 Mar 2011 14:14:12 +0100 Subject: Core/Battlegrounds: BG instances are not saved to the database and thus need no deletion. --- src/server/game/Battlegrounds/Battleground.cpp | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'src') diff --git a/src/server/game/Battlegrounds/Battleground.cpp b/src/server/game/Battlegrounds/Battleground.cpp index e0844cdcccd..d43659b6f49 100755 --- a/src/server/game/Battlegrounds/Battleground.cpp +++ b/src/server/game/Battlegrounds/Battleground.cpp @@ -214,16 +214,6 @@ Battleground::~Battleground() for (int i = 0; i < size; ++i) DelObject(i); - if (GetInstanceID()) // not spam by useless queries in case BG templates - { - // delete creature and go respawn times - CharacterDatabase.PExecute("DELETE FROM creature_respawn WHERE instance = '%u'",GetInstanceID()); - CharacterDatabase.PExecute("DELETE FROM gameobject_respawn WHERE instance = '%u'",GetInstanceID()); - // delete instance from db - CharacterDatabase.PExecute("DELETE FROM instance WHERE id = '%u'",GetInstanceID()); - // remove from battlegrounds - } - sBattlegroundMgr->RemoveBattleground(GetInstanceID(), GetTypeID()); // unload map if (m_Map) -- cgit v1.2.3