Skip to content

Commit

Permalink
Preferences Dialog: fixed minor regression from a776529
Browse files Browse the repository at this point in the history
Accidentally put the +1 in the beginning range instead of adding to the resumt.
  • Loading branch information
Vultraz committed Feb 21, 2018
1 parent f2202fc commit 0b87383
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gui/dialogs/preferences_dialog.cpp
Expand Up @@ -314,7 +314,7 @@ void preferences_dialog::post_build(window& window)
[&](widget& w) { disable_widget_on_toggle<slider>(window, w, "turbo_slider"); }, true);

const auto accl_load = [this]()->int {
return std::distance(accl_speeds_.begin() + 1, std::find(accl_speeds_.begin(), accl_speeds_.end(), turbo_speed()));
return std::distance(accl_speeds_.begin(), std::find(accl_speeds_.begin(), accl_speeds_.end(), turbo_speed())) + 1;
};

const auto accl_save = [this](int i) {
Expand Down

0 comments on commit 0b87383

Please sign in to comment.