From 7a818e05ef3b1e59375cb50a42a056d729432b6a Mon Sep 17 00:00:00 2001 From: Rachel Bryk Date: Wed, 1 Jan 2014 07:45:20 -0500 Subject: [PATCH] I've never claimed to be a good coder. --- Source/Core/Core/BootManager.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Source/Core/Core/BootManager.cpp b/Source/Core/Core/BootManager.cpp index ee0365dd27..e77edd71d8 100644 --- a/Source/Core/Core/BootManager.cpp +++ b/Source/Core/Core/BootManager.cpp @@ -152,8 +152,7 @@ bool BootCore(const std::string& _rFilename) int source; for (unsigned int i = 0; i < MAX_WIIMOTES; ++i) { - std::string num = StringFromFormat("%u", i); - game_ini.Get("Controls", ("WiimoteSource" + num).c_str(), &source, -1); + game_ini.Get("Controls", StringFromFormat("WiimoteSource%u", i).c_str(), &source, -1); if (source != -1 && g_wiimote_sources[i] != source && source >= WIIMOTE_SRC_NONE && source <= WIIMOTE_SRC_HYBRID) { config_cache.iSetWiimoteSource[i] = source;