Added some asserts to trace a bug
git-svn-id: http://mc-server.googlecode.com/svn/trunk@319 0a769ca7-a7f5-676a-18bf-c427514a06d6
This commit is contained in:
@@ -247,7 +247,11 @@ void cChunk::SetAllData(const char * a_BlockData, cEntityList & a_Entities, cBlo
|
||||
(*itr)->GetUniqueID(), (*itr)->GetClass(),
|
||||
m_PosX, m_PosZ
|
||||
);
|
||||
delete *itr;
|
||||
|
||||
// Assert because this is a very curious case. These lines were executed once before, when a player died, re spawned, and walked around a bit. It's uncertain why an entity would be in the chunk in this case.
|
||||
ASSERT(!"Unexpected entity in chunk!");
|
||||
|
||||
(*itr)->Destroy();
|
||||
}
|
||||
}
|
||||
for (cBlockEntityList::iterator itr = m_BlockEntities.begin(); itr != m_BlockEntities.end(); ++itr)
|
||||
|
||||
Reference in New Issue
Block a user