fixed a state bug in the gameconf parser that would break parsing after a signature section was done

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40975
This commit is contained in:
David Anderson 2007-06-17 07:32:31 +00:00
parent 47e3056111
commit 5b7d82570f

View File

@ -277,6 +277,11 @@ SMCParseResult CGameConfig::ReadSMC_LeavingSection()
m_ParseState = PSTATE_GAMEDEFS; m_ParseState = PSTATE_GAMEDEFS;
break; break;
} }
case PSTATE_GAMEDEFS_SIGNATURES:
{
m_ParseState = PSTATE_GAMEDEFS;
break;
}
case PSTATE_GAMEDEFS_SIGNATURES_SIG: case PSTATE_GAMEDEFS_SIGNATURES_SIG:
{ {
if (s_TempSig.library[0] == '\0') if (s_TempSig.library[0] == '\0')
@ -372,7 +377,7 @@ SMCParseResult CGameConfig::ReadSMC_LeavingSection()
if (real_bytes < 1) if (real_bytes < 1)
{ {
g_Logger.LogError("[SM] Invalid signature length of 1 (name \"%s\") (gameconf \"%s\")", g_Logger.LogError("[SM] Invalid signature (name \"%s\") (gameconf \"%s\")",
m_offset, m_offset,
m_pFile); m_pFile);
} else { } else {