summaryrefslogtreecommitdiff
path: root/src
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
commit3640f1204215f5a6decf7f3756145a35101016a5 (patch)
tree4445af04d60e40a2a1158e2295476c4b58ebc535 /src
parent286f5f9c449f5636949352cd4adf818b1c0267cd (diff)
downloadopenttd-3640f1204215f5a6decf7f3756145a35101016a5.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.
Diffstat (limited to 'src')
-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;