1
0

Fixed invalid iterators

This commit is contained in:
Tiger Wang
2014-06-21 22:07:38 +01:00
parent 1296c5dce7
commit 6e681269d9
7 changed files with 26 additions and 39 deletions

View File

@@ -1600,6 +1600,7 @@ bool cPlayer::MoveToWorld(const AString & a_WorldName, cWorld * a_World, bool a_
}
// Remove player from the old world
SetIsTravellingThroughPortal(true); // cChunk handles entity removal
m_World->RemovePlayer(this);
// Queue adding player to the new world, including all the necessary adjustments to the object