summaryrefslogtreecommitdiff
path: root/src/saveload
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2015-05-21 18:59:11 +0000
committerfrosch <frosch@openttd.org>2015-05-21 18:59:11 +0000
commita97e7bae65438a5eddbed58885a934eee291e848 (patch)
treee1d791daf17954f955faa3ce3f7910b0d2d29454 /src/saveload
parent10466746b4083d93af547c153db3730e74c8a3a2 (diff)
downloadopenttd-a97e7bae65438a5eddbed58885a934eee291e848.tar.xz
(svn r27291) -Fix (r27278) [FS#6303]: Some savegame data was discarded again during loading.
Diffstat (limited to 'src/saveload')
-rw-r--r--src/saveload/industry_sl.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/saveload/industry_sl.cpp b/src/saveload/industry_sl.cpp
index 34e857c6f..c5ddadfdd 100644
--- a/src/saveload/industry_sl.cpp
+++ b/src/saveload/industry_sl.cpp
@@ -160,7 +160,9 @@ static void Save_ITBL()
/** Load industry-type build data. */
static void Load_ITBL()
{
- _industry_builder.Reset();
+ for (IndustryType it = 0; it < NUM_INDUSTRYTYPES; it++) {
+ _industry_builder.builddata[it].Reset();
+ }
int index;
while ((index = SlIterateArray()) != -1) {
if ((uint)index >= NUM_INDUSTRYTYPES) SlErrorCorrupt("Too many industry builder datas");