Core/Battlegrounds: Free instance id in the proper place.

fixes #966
This commit is contained in:
leak
2011-03-14 20:39:05 +01:00
parent 28c264402b
commit 6a4ffb4be1
2 changed files with 6 additions and 3 deletions
@@ -111,9 +111,6 @@ void BattlegroundMgr::Update(uint32 diff)
if (!m_ClientBattlegroundIds[i][bg->GetBracketId()].empty())
m_ClientBattlegroundIds[i][bg->GetBracketId()].erase(bg->GetClientInstanceID());
// Free up the instance id and allow it to be reused
sMapMgr->FreeInstanceId(bg->GetInstanceID());
delete bg;
}
}