summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2008-01-16 23:46:46 +0000
committerpeter1138 <peter1138@openttd.org>2008-01-16 23:46:46 +0000
commitbc438a3033339ddb2f0d1f94663ce01e3049c0e6 (patch)
tree3f0498151f9bd808dd24b1ac1aa2b722e1f0a5cf
parentc8178d43c128f0e1d6ddb7b3c7f9b70d98bdea28 (diff)
downloadopenttd-bc438a3033339ddb2f0d1f94663ce01e3049c0e6.tar.xz
(svn r11884) -Cleanup: leftover use of widget numbers instead of enum
-rw-r--r--src/settings_gui.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/settings_gui.cpp b/src/settings_gui.cpp
index 7ced5a6ac..821fa7f48 100644
--- a/src/settings_gui.cpp
+++ b/src/settings_gui.cpp
@@ -166,8 +166,8 @@ static void GameOptionsWndProc(Window *w, WindowEvent *e)
int i;
StringID str = STR_02BE_DEFAULT;
- w->SetWidgetDisabledState(21, !(_vehicle_design_names & 1));
- if (!w->IsWidgetDisabled(21)) str = STR_02BF_CUSTOM;
+ w->SetWidgetDisabledState(GAMEOPT_VEHICLENAME_SAVE, !(_vehicle_design_names & 1));
+ if (!w->IsWidgetDisabled(GAMEOPT_VEHICLENAME_SAVE)) str = STR_02BF_CUSTOM;
SetDParam(0, str);
SetDParam(1, _currency_specs[_opt_ptr->currency].name);
SetDParam(2, STR_UNITS_IMPERIAL + _opt_ptr->units);