I've never claimed to be a good coder.

This commit is contained in:
Rachel Bryk 2014-01-01 07:45:20 -05:00
parent 8f34085172
commit 7a818e05ef
1 changed files with 1 additions and 2 deletions

View File

@ -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;