summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2008-11-22 13:09:31 +0000
committerrubidium <rubidium@openttd.org>2008-11-22 13:09:31 +0000
commit6e93e611c8f64c38d83e5ebd45abb59913c22dcc (patch)
tree4445af04d60e40a2a1158e2295476c4b58ebc535
parent176e7469b6a77a1cff75f82b94de91e82a7406c5 (diff)
downloadopenttd-6e93e611c8f64c38d83e5ebd45abb59913c22dcc.tar.xz
(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.
-rw-r--r--src/cheat_gui.cpp2
1 files changed, 1 insertions, 1 deletions
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;