*Prevent assertion fail in Unit::_AddAura after creature add to remove list.

--HG--
branch : trunk
This commit is contained in:
QAston
2010-01-22 20:03:47 +01:00
parent 7b3691ac9e
commit 216d32e8a7
9 changed files with 14 additions and 11 deletions
+2 -2
View File
@@ -542,12 +542,12 @@ Player::~Player ()
sWorld.DecreasePlayerCount();
}
void Player::CleanupsBeforeDelete()
void Player::CleanupsBeforeDelete(bool finalCleanup)
{
TradeCancel(false);
DuelComplete(DUEL_INTERUPTED);
Unit::CleanupsBeforeDelete();
Unit::CleanupsBeforeDelete(finalCleanup);
if (m_transport)
m_transport->RemovePassenger(this);