mirror of
https://github.com/openmoh/openmohaa.git
synced 2025-04-28 21:57:57 +03:00
Fixed half of archived entities being deleted during restart
This commit is contained in:
parent
08c040d4ea
commit
096972827e
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue