*Fix some crash when unit is removed.

--HG--
branch : trunk
This commit is contained in:
megamage
2009-04-03 14:51:40 -06:00
parent 2bc033a328
commit c48ea87a03
2 changed files with 16 additions and 17 deletions
+1 -4
View File
@@ -511,10 +511,7 @@ void Player::CleanupsBeforeDelete()
TradeCancel(false);
DuelComplete(DUEL_INTERUPTED);
if(IsInWorld()) // only for fully created Object
{
Unit::CleanupsBeforeDelete();
}
Unit::CleanupsBeforeDelete();
if (m_transport)
m_transport->RemovePassenger(this);