diff options
author | frosch <frosch@openttd.org> | 2015-05-21 18:59:11 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2015-05-21 18:59:11 +0000 |
commit | a97e7bae65438a5eddbed58885a934eee291e848 (patch) | |
tree | e1d791daf17954f955faa3ce3f7910b0d2d29454 | |
parent | 10466746b4083d93af547c153db3730e74c8a3a2 (diff) | |
download | openttd-a97e7bae65438a5eddbed58885a934eee291e848.tar.xz |
(svn r27291) -Fix (r27278) [FS#6303]: Some savegame data was discarded again during loading.
-rw-r--r-- | src/saveload/industry_sl.cpp | 4 |
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"); |