Fixed half of archived entities being deleted during restart

This commit is contained in:
smallmodel 2023-11-13 19:35:46 +01:00
parent 08c040d4ea
commit 096972827e
No known key found for this signature in database
GPG key ID: A96F163ED4891440

View file

@ -861,7 +861,7 @@ void Level::CleanUp(qboolean samemap, qboolean resetConfigStrings)
//
// Remove all archived entities
//
for (i = 1; i <= m_SimpleArchivedEntities.NumObjects(); i++) {
for (i = m_SimpleArchivedEntities.NumObjects(); i > 0; i--) {
delete m_SimpleArchivedEntities.ObjectAt(i);
}