From cce60de20f1972f2c841502ed2dbcdf5904dd14a Mon Sep 17 00:00:00 2001 From: Scott Ehlert Date: Sat, 7 Jul 2007 04:06:47 +0000 Subject: [PATCH] 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 --HG-- extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401049 --- core/GameConfigs.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/GameConfigs.cpp b/core/GameConfigs.cpp index 21eae069c..f2171d841 100644 --- a/core/GameConfigs.cpp +++ b/core/GameConfigs.cpp @@ -273,8 +273,10 @@ SMCParseResult CGameConfig::ReadSMC_LeavingSection() { /* If we shouldn't read the rest of this section, set the ignore level. */ m_IgnoreLevel = 1; + m_ParseState = PSTATE_GAMES; + } else { + m_ParseState = PSTATE_GAMEDEFS; } - m_ParseState = PSTATE_GAMEDEFS; break; } case PSTATE_GAMEDEFS_SIGNATURES: