(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.

This commit is contained in:
rubidium 2008-11-22 13:09:31 +00:00
parent 286f5f9c44
commit 3640f12042

View File

@ -165,7 +165,7 @@ struct CheatWindow : Window {
/* Draw colored flag for change company cheat */
case STR_CHEAT_CHANGE_COMPANY:
SetDParam(0, val);
SetDParam(0, val + 1);
GetString(buf, STR_CHEAT_CHANGE_COMPANY, lastof(buf));
DrawCompanyIcon(_current_company, 60 + GetStringBoundingBox(buf).width, y + 2);
break;