diff options
author | frosch <frosch@openttd.org> | 2010-03-20 14:30:16 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2010-03-20 14:30:16 +0000 |
commit | 116a5f56a4c1362446bcf921e4436a19057d105e (patch) | |
tree | eeb12e8765bc1997310546c701043efd81c9b410 /src/saveload | |
parent | e27e5febb60f1cd2a2c70b100652c9365d97dbbd (diff) | |
download | openttd-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.cpp | 4 | ||||
-rw-r--r-- | src/saveload/oldloader_sl.cpp | 2 |
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; } |