mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-08-24 06:59:10 +00:00
(svn r15336) -Fix: do not use _current_company in the GUI as there are no guarantees that _current_company is the same as _local_company.
This commit is contained in:
@@ -166,7 +166,7 @@ struct CheatWindow : Window {
|
||||
case STR_CHEAT_CHANGE_COMPANY:
|
||||
SetDParam(0, val + 1);
|
||||
GetString(buf, STR_CHEAT_CHANGE_COMPANY, lastof(buf));
|
||||
DrawCompanyIcon(_current_company, 60 + GetStringBoundingBox(buf).width, y + 2);
|
||||
DrawCompanyIcon(_local_company, 60 + GetStringBoundingBox(buf).width, y + 2);
|
||||
break;
|
||||
|
||||
/* Set correct string for switch climate cheat */
|
||||
|
Reference in New Issue
Block a user