Fix a stupid indexing mistake
authorMikko Rasa <tdb@tdb.fi>
Thu, 28 Jun 2012 09:48:37 +0000 (12:48 +0300)
committerMikko Rasa <tdb@tdb.fi>
Thu, 28 Jun 2012 09:48:37 +0000 (12:48 +0300)
src/Profile.cpp

index 6e48e99..664cb1c 100755 (executable)
@@ -1237,11 +1237,11 @@ void Profile::LoadGeneralDataFromNode( const XNode* pNode )
                                }
                                CHECKPOINT_M("CustomSpeedMod check 3");
                                split(m_sDefaultModifiers[GAMESTATE->GetCurrentGame()->m_szName], ", ", sDefaultMods);
+                               sDefaultMods[0].MakeLower();
                                bool found = false;
                                for (unsigned i = 0; i < sPossibleSpeedMods.size(); i++)
                                {
-                                       sDefaultMods[0].MakeLower();
-                                       sPossibleSpeedMods[0].MakeLower();
+                                       sPossibleSpeedMods[i].MakeLower();
                                        if (sDefaultMods[0] == sPossibleSpeedMods[i]) found = true;
                                }
                                if (!found)