Maybe fixed nasty memory corruption bug.

This was SVN commit r2254.
This commit is contained in:
Ykkrosh
2005-05-09 02:29:33 +00:00
parent f6e864c9f6
commit bcc4aea8dc
3 changed files with 17 additions and 3 deletions
+2 -3
View File
@@ -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();