(svn r19980) -Add: Load some general data from savegames on SL_LOAD_CHECK.

This commit is contained in:
frosch
2010-06-13 14:15:36 +00:00
parent c9628dd568
commit 928ecf82bb
4 changed files with 102 additions and 22 deletions

View File

@@ -48,6 +48,12 @@ void LoadCheckData::Clear()
this->map_size_x = this->map_size_y = 256; // Default for old savegames which do not store mapsize.
this->current_date = 0;
memset(&this->settings, 0, sizeof(this->settings));
const CompanyPropertiesMap::iterator end = this->companies.End();
for (CompanyPropertiesMap::iterator it = this->companies.Begin(); it != end; it++) {
delete it->second;
}
companies.Clear();
}