From 64b992487ebb1674db83acd0f4ac29aaa3458ce2 Mon Sep 17 00:00:00 2001 From: Valentin Vanelslande Date: Sat, 29 Dec 2018 16:23:33 -0500 Subject: [PATCH] fix regression --- src/citra_qt/configuration/config.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/citra_qt/configuration/config.cpp b/src/citra_qt/configuration/config.cpp index 21a0bd1d80..4d6e736e9a 100644 --- a/src/citra_qt/configuration/config.cpp +++ b/src/citra_qt/configuration/config.cpp @@ -94,7 +94,7 @@ void Config::ReadValues() { Settings::values.input_profiles.emplace_back(std::move(profile)); }; - const int num_input_profiles = qt_config->beginReadArray("profiles"); + int num_input_profiles = qt_config->beginReadArray("profiles"); for (int i = 0; i < num_input_profiles; ++i) { qt_config->setArrayIndex(i); @@ -106,6 +106,7 @@ void Config::ReadValues() { // create a input profile if no input profiles exist, with the default or old settings if (num_input_profiles == 0) { append_profile(); + num_input_profiles = 1; } // ensure that the current input profile index is valid.