mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-07-21 06:05:51 +00:00
Maybe fixed nasty memory corruption bug.
This was SVN commit r2254.
This commit is contained in:
@@ -182,9 +182,8 @@ int CMapReader::ApplyData()
|
||||
}
|
||||
}
|
||||
|
||||
// remove all existing entities (by recreating the entity manager)
|
||||
delete &g_EntityManager;
|
||||
new CEntityManager();
|
||||
// delete all existing entities
|
||||
g_EntityManager.deleteAll();
|
||||
// delete all remaining non-entity units
|
||||
pUnitMan->DeleteAll();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user