From 6221d74644922ea4bbba3ed9cd8bbec42398f77b Mon Sep 17 00:00:00 2001 From: smatz Date: Sat, 16 May 2009 23:34:14 +0000 Subject: (svn r16325) -Codechange: replace GetPoolItem(index) by PoolItem::Get(index) --- src/highscore_gui.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/highscore_gui.cpp') diff --git a/src/highscore_gui.cpp b/src/highscore_gui.cpp index cfe81ce15..2b0917b6f 100644 --- a/src/highscore_gui.cpp +++ b/src/highscore_gui.cpp @@ -59,7 +59,7 @@ struct EndGameWindow : EndGameHighScoreBaseWindow { this->background_img = SPR_TYCOON_IMG1_BEGIN; if (_local_company != COMPANY_SPECTATOR) { - const Company *c = GetCompany(_local_company); + const Company *c = Company::Get(_local_company); if (c->old_economy[0].performance_history == SCORE_MAX) { this->background_img = SPR_TYCOON_IMG2_BEGIN; } @@ -72,7 +72,7 @@ struct EndGameWindow : EndGameHighScoreBaseWindow { this->rank = SaveHighScoreValueNetwork(); } else { /* in single player _local company is always valid */ - const Company *c = GetCompany(_local_company); + const Company *c = Company::Get(_local_company); this->window_number = _settings_game.difficulty.diff_level; this->rank = SaveHighScoreValue(c); } @@ -95,7 +95,7 @@ struct EndGameWindow : EndGameHighScoreBaseWindow { if (!IsValidCompanyID(_local_company)) return; - c = GetCompany(_local_company); + c = Company::Get(_local_company); /* We need to get performance from last year because the image is shown * at the start of the new year when these things have already been copied */ if (this->background_img == SPR_TYCOON_IMG2_BEGIN) { // Tycoon of the century \o/ -- cgit v1.2.3-54-g00ecf