Bug and crash fixes
* Fixes end portals' solidity * Fixed crashes to do with multithreading and removing an entity from the wrong world * Fixed crashes due to bad merge * Fixed crashes due to an object being deleted twice * Simplified cWorld::Start() and added comments to configuration files
This commit is contained in:
@@ -120,6 +120,8 @@ cClientHandle::~cClientHandle()
|
||||
}
|
||||
if (World != NULL)
|
||||
{
|
||||
m_Player->SetWorldTravellingFrom(NULL); // Make sure that the player entity is actually removed
|
||||
World->RemovePlayer(m_Player); // Must be called before cPlayer::Destroy() as otherwise cChunk tries to delete the player, and then we do it again
|
||||
m_Player->Destroy();
|
||||
}
|
||||
delete m_Player;
|
||||
|
||||
Reference in New Issue
Block a user