*Fix a crash caused by mailed item deconstructor.

--HG--
branch : trunk
This commit is contained in:
megamage committed 2009-06-17 09:57:22 -05:00
1 parent 0085745c42
commit e405e6f9ed
2 files changed
+7 -3

No files matched your search

+3
View File
@@ -1844,6 +1844,9 @@ void Player::RemoveFromWorld()
m_items[i]->RemoveFromWorld();
}
for (ItemMap::iterator iter = mMitems.begin(); iter != mMitems.end(); ++iter)
iter->second->RemoveFromWorld();
///- Do not add/remove the player from the object storage
///- It will crash when updating the ObjectAccessor
///- The player should only be removed when logging out