summaryrefslogtreecommitdiff
path: root/src/fios_gui.cpp
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2010-06-13 14:15:36 +0000
committerfrosch <frosch@openttd.org>2010-06-13 14:15:36 +0000
commit16618e6f16cf2a8fbb165b8c7c6e245e6cd7a298 (patch)
treef71fdb0a2ef4881a5c249d250a7bc6c800d62045 /src/fios_gui.cpp
parente95518c8e9e27d2f208ba6434d3db061616d1bcd (diff)
downloadopenttd-16618e6f16cf2a8fbb165b8c7c6e245e6cd7a298.tar.xz
(svn r19980) -Add: Load some general data from savegames on SL_LOAD_CHECK.
Diffstat (limited to 'src/fios_gui.cpp')
-rw-r--r--src/fios_gui.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/fios_gui.cpp b/src/fios_gui.cpp
index b96d63a8a..fc5d8b016 100644
--- a/src/fios_gui.cpp
+++ b/src/fios_gui.cpp
@@ -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();
}