*Fix a crash caused by mailed item deconstructor.
--HG-- branch : trunk
This commit is contained in:
1 parent
0085745c42
commit
e405e6f9ed
2 files changed
+7
-3
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user