summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorglx <glx@openttd.org>2007-10-13 16:56:29 +0000
committerglx <glx@openttd.org>2007-10-13 16:56:29 +0000
commitd47e51c246fda12c29596598d7d7f8a030fc8b63 (patch)
tree9a179c5e801ba942fa2e27790f3be3aaa2800cac
parent9e3d19e392e1dbf04616ec4ed2dc14f57c73db5c (diff)
downloadopenttd-d47e51c246fda12c29596598d7d7f8a030fc8b63.tar.xz
(svn r11255) -Fix [FS#1332]: industry counter was not updated on TTD savegame loading
-rw-r--r--src/oldloader.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/oldloader.cpp b/src/oldloader.cpp
index 0910200e6..fca06eed9 100644
--- a/src/oldloader.cpp
+++ b/src/oldloader.cpp
@@ -730,6 +730,7 @@ static bool LoadOldIndustry(LoadgameState *ls, int num)
if (i->IsValid()) {
i->town = GetTown(REMAP_TOWN_IDX(_old_town_index));
+ IncIndustryTypeCount(i->type);
}
return true;