From a97e7bae65438a5eddbed58885a934eee291e848 Mon Sep 17 00:00:00 2001 From: frosch Date: Thu, 21 May 2015 18:59:11 +0000 Subject: [PATCH] (svn r27291) -Fix (r27278) [FS#6303]: Some savegame data was discarded again during loading. --- src/saveload/industry_sl.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/saveload/industry_sl.cpp b/src/saveload/industry_sl.cpp index 34e857c6f5..c5ddadfdd0 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");