mirror of https://github.com/OpenTTD/OpenTTD
(svn r14603) -Fix [FS#2422]: the company ID is off-by-one w.r.t. to the rest of the GUI in the cheat window.
parent
176e7469b6
commit
6e93e611c8
|
@ -165,7 +165,7 @@ struct CheatWindow : Window {
|
||||||
|
|
||||||
/* Draw colored flag for change company cheat */
|
/* Draw colored flag for change company cheat */
|
||||||
case STR_CHEAT_CHANGE_COMPANY:
|
case STR_CHEAT_CHANGE_COMPANY:
|
||||||
SetDParam(0, val);
|
SetDParam(0, val + 1);
|
||||||
GetString(buf, STR_CHEAT_CHANGE_COMPANY, lastof(buf));
|
GetString(buf, STR_CHEAT_CHANGE_COMPANY, lastof(buf));
|
||||||
DrawCompanyIcon(_current_company, 60 + GetStringBoundingBox(buf).width, y + 2);
|
DrawCompanyIcon(_current_company, 60 + GetStringBoundingBox(buf).width, y + 2);
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue