[FIXED] std::list asserted in cChunkMap::RemoveClientFromChunks()
#3
Actually I now think the destructor cleared it

Code:
void cClientHandle::Destroy()
{
    m_bDestroyed = true;
    
    if ((m_Player != NULL) && (m_Player->GetWorld() != NULL))
    {
        RemoveFromAllChunks();
    }
}

m_bDestroyed is set first, but it's done from the SendThread. The tick thread comes along, sees the flag m_bDestroyed is true, and deletes the client.

Thoughts?
Reply
Thanks given by:


Messages In This Thread
RE: std::list asserted in cChunkMap::RemoveClientFromChunks() - by FakeTruth - 02-28-2012, 11:35 PM



Users browsing this thread: 1 Guest(s)