summaryrefslogtreecommitdiff
path: root/src/saveload
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2010-03-20 14:30:16 +0000
committerfrosch <frosch@openttd.org>2010-03-20 14:30:16 +0000
commit116a5f56a4c1362446bcf921e4436a19057d105e (patch)
treeeeb12e8765bc1997310546c701043efd81c9b410 /src/saveload
parente27e5febb60f1cd2a2c70b100652c9365d97dbbd (diff)
downloadopenttd-116a5f56a4c1362446bcf921e4436a19057d105e.tar.xz
(svn r19481) -Codechange: Turn _industry_counts into a static member of Industry.
Diffstat (limited to 'src/saveload')
-rw-r--r--src/saveload/industry_sl.cpp4
-rw-r--r--src/saveload/oldloader_sl.cpp2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/saveload/industry_sl.cpp b/src/saveload/industry_sl.cpp
index 9b4dd2b3d..42c8fda32 100644
--- a/src/saveload/industry_sl.cpp
+++ b/src/saveload/industry_sl.cpp
@@ -107,12 +107,12 @@ static void Load_INDY()
{
int index;
- ResetIndustryCounts();
+ Industry::ResetIndustryCounts();
while ((index = SlIterateArray()) != -1) {
Industry *i = new (index) Industry();
SlObject(i, _industry_desc);
- IncIndustryTypeCount(i->type);
+ Industry::IncIndustryTypeCount(i->type);
}
}
diff --git a/src/saveload/oldloader_sl.cpp b/src/saveload/oldloader_sl.cpp
index e6dc18660..68c3daf7a 100644
--- a/src/saveload/oldloader_sl.cpp
+++ b/src/saveload/oldloader_sl.cpp
@@ -841,7 +841,7 @@ static bool LoadOldIndustry(LoadgameState *ls, int num)
i->random_colour = RemapTTOColour(i->random_colour);
}
- IncIndustryTypeCount(i->type);
+ Industry::IncIndustryTypeCount(i->type);
} else {
delete i;
}