Fix a crash when the first player has a valid speedmod but the second doesn't
authorMikko Rasa <tdb@tdb.fi>
Thu, 28 Jun 2012 19:49:27 +0000 (22:49 +0300)
committerMikko Rasa <tdb@tdb.fi>
Thu, 28 Jun 2012 19:52:03 +0000 (22:52 +0300)
src/OptionRowHandler.cpp

index 4d4c1dc..0b74be1 100755 (executable)
@@ -220,11 +220,10 @@ public:
        }
        void ImportOption( const OptionRowDefinition &def, const vector<PlayerNumber> &vpns, vector<bool> vbSelectedOut[NUM_PLAYERS] ) const
        {
-               int iFallbackOption = -1;
-               bool bUseFallbackOption = true;
-
                FOREACH_CONST( PlayerNumber, vpns, pn )
                {
+                       int iFallbackOption = -1;
+                       bool bUseFallbackOption = true;
                        PlayerNumber p = *pn;
                        vector<bool> &vbSelOut = vbSelectedOut[p];