(svn r20341) -Codechange: pass the tile of the HQ instead of the company to UpdateCompanyHQ

This commit is contained in:
rubidium
2010-08-03 12:36:40 +00:00
parent e72a0a39bb
commit f475a7f5e7
3 changed files with 6 additions and 9 deletions

View File

@@ -292,7 +292,7 @@ int UpdateCompanyRatingAndValue(Company *c, bool update)
if (update) {
c->old_economy[0].performance_history = score;
UpdateCompanyHQ(c, score);
UpdateCompanyHQ(c->location_of_HQ, score);
c->old_economy[0].company_value = CalculateCompanyValue(c);
}