Fixed bug where multiple "#default" sections in game config file would be ignored if the first section does not work for the running game/mod
authorScott Ehlert <ds@alliedmods.net>
Sat Jul 07 04:06:47 2007 +0000 (2007-07-07)
changeset 10436e253ddd10c4
parent 1042 a435a9c324df
child 1044 ff0047e53c65
Fixed bug where multiple "#default" sections in game config file would be ignored if the first section does not work for the running game/mod
core/GameConfigs.cpp
     1.1 --- a/core/GameConfigs.cpp	Thu Jul 05 20:17:08 2007 +0000
     1.2 +++ b/core/GameConfigs.cpp	Sat Jul 07 04:06:47 2007 +0000
     1.3 @@ -273,8 +273,10 @@
     1.4  			{
     1.5  				/* If we shouldn't read the rest of this section, set the ignore level. */
     1.6  				m_IgnoreLevel = 1;
     1.7 +				m_ParseState = PSTATE_GAMES;
     1.8 +			} else {
     1.9 +				m_ParseState = PSTATE_GAMEDEFS;
    1.10  			}
    1.11 -			m_ParseState = PSTATE_GAMEDEFS;
    1.12  			break;
    1.13  		}
    1.14  	case PSTATE_GAMEDEFS_SIGNATURES: