(svn r19481) -Codechange: Turn _industry_counts into a static member of Industry.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user