From 6e93e611c8f64c38d83e5ebd45abb59913c22dcc Mon Sep 17 00:00:00 2001 From: rubidium Date: Sat, 22 Nov 2008 13:09:31 +0000 Subject: [PATCH] (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(-) diff --git a/src/cheat_gui.cpp b/src/cheat_gui.cpp index e79e907cd5..b6aefd18ad 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;