src/settings_gui.cpp
changeset 8319 80dc5454487b
parent 8284 ebdc5ba08874
child 8321 96c331ee5ac3
--- a/src/settings_gui.cpp	Wed Jan 16 22:26:45 2008 +0000
+++ b/src/settings_gui.cpp	Wed Jan 16 23:46:46 2008 +0000
@@ -166,8 +166,8 @@
 			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);