mirror of
https://github.com/glest/glest-source.git
synced 2025-02-25 20:22:31 +01:00
- a better attempt to safely end games and hopefully fix the delete cells bug once for all
This commit is contained in:
parent
860b00df44
commit
a7c86fb86b
@ -78,6 +78,17 @@ World::~World() {
|
||||
ExploredCellsLookupItemCache.clear();
|
||||
ExploredCellsLookupItemCacheTimer.clear();
|
||||
|
||||
SystemFlags::OutputDebug(SystemFlags::debugSystem,"In [%s::%s Line: %d]\n",__FILE__,__FUNCTION__,__LINE__);
|
||||
|
||||
for(int i= 0; i<factions.size(); ++i){
|
||||
factions[i].end();
|
||||
}
|
||||
|
||||
SystemFlags::OutputDebug(SystemFlags::debugSystem,"In [%s::%s Line: %d]\n",__FILE__,__FUNCTION__,__LINE__);
|
||||
factions.clear();
|
||||
|
||||
SystemFlags::OutputDebug(SystemFlags::debugSystem,"In [%s::%s Line: %d]\n",__FILE__,__FUNCTION__,__LINE__);
|
||||
|
||||
delete techTree;
|
||||
techTree = NULL;
|
||||
|
||||
@ -103,6 +114,7 @@ void World::end(){
|
||||
for(int i= 0; i<factions.size(); ++i){
|
||||
factions[i].end();
|
||||
}
|
||||
factions.clear();
|
||||
fogOfWarOverride = false;
|
||||
//stats will be deleted by BattleEnd
|
||||
SystemFlags::OutputDebug(SystemFlags::debugSystem,"In [%s::%s Line: %d]\n",__FILE__,__FUNCTION__,__LINE__);
|
||||
|
Loading…
x
Reference in New Issue
Block a user