# HG changeset patch # User rubidium # Date 2008-11-22 13:09:31 # Node ID 1c484901e47e5ac02545e01a07f7c0481b5dbf20 # Parent eeede7f17ea9be3a953d4bfdfe99027ba6804d75 (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. diff --git a/src/cheat_gui.cpp b/src/cheat_gui.cpp --- 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;