[wesnoth-commits] [wesnoth/wesnoth] 23a180: Preferences Dialog: don't use invalid initial sele...
GitHub
noreply at github.com
Thu Mar 8 23:57:47 UTC 2018
Branch: refs/heads/master
Home: https://github.com/wesnoth/wesnoth
Commit: 23a180b145d9dbbec30c9c71089edb1a600dd140
https://github.com/wesnoth/wesnoth/commit/23a180b145d9dbbec30c9c71089edb1a600dd140
Author: Charles Dang <exodia339 at gmail.com>
Date: 2018-03-09 (Fri, 09 Mar 2018)
Changed paths:
M src/gui/dialogs/preferences_dialog.cpp
Log Message:
-----------
Preferences Dialog: don't use invalid initial selection for combo advanced prefs
Fixes #2612. Bug above was caused with a legacy value for compress_saves ("no") in the user's
preferences file. Since that didn't match an option ID, the game passed an invalid value to
menu_button::set_values, which then asserted. It's not really worth it to add value aliases to
handle the legacy compression values, so we just reset the initial selection to 0 if an invalid
(in this case, one of the legacy values) is used. Might mean some user's preferences get
inadvertently reset,but they can simply update their selections again. At least it's not crashing.
More information about the Commits
mailing list