diff options
Diffstat (limited to 'src/settings_gui.cpp')
-rw-r--r-- | src/settings_gui.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/settings_gui.cpp b/src/settings_gui.cpp index e3d62622c..9cae1373f 100644 --- a/src/settings_gui.cpp +++ b/src/settings_gui.cpp @@ -275,7 +275,9 @@ struct GameOptionsWindow : Window { case GAMEOPT_ROADSIDE_BTN: // Road side if (this->opt->vehicle.road_side != index) { // only change if setting changed - DoCommandP(0, index, 0, CMD_SET_ROAD_DRIVE_SIDE | CMD_MSG(STR_00B4_CAN_T_DO_THIS)); + uint i; + if (GetPatchFromName("vehicle.road_side", &i) == NULL) NOT_REACHED(); + SetPatchValue(i, index); MarkWholeScreenDirty(); } break; |