From 3640f1204215f5a6decf7f3756145a35101016a5 Mon Sep 17 00:00:00 2001 From: rubidium Date: Sat, 22 Nov 2008 13:09:31 +0000 Subject: (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. --- src/cheat_gui.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/cheat_gui.cpp b/src/cheat_gui.cpp index e79e907cd..b6aefd18a 100644 --- a/src/cheat_gui.cpp +++ b/src/cheat_gui.cpp @@ -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; -- cgit v1.2.3-70-g09d2