Skip to content

Commit 1bd0f9f

Browse files
committed
fix: Prevent crash if an INI data field is not found in all builds
1 parent 8c3ec4c commit 1bd0f9f

File tree

2 files changed

+0
-8
lines changed
  • GeneralsMD/Code/GameEngine/Source/Common/INI
  • Generals/Code/GameEngine/Source/Common/INI

2 files changed

+0
-8
lines changed

Generals/Code/GameEngine/Source/Common/INI/INI.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1528,10 +1528,6 @@ void INI::initFromINIMulti( void *what, const MultiIniFieldParse& parseTableList
15281528
{
15291529
DEBUG_ASSERTCRASH( 0, ("[LINE: %d - FILE: '%s'] Unknown field '%s' in block '%s'",
15301530
INI::getLineNum(), INI::getFilename().str(), field, m_curBlockStart) );
1531-
#if !defined(RTS_DEBUG)
1532-
// Just ignore unknown fields in debug builds
1533-
throw INI_UNKNOWN_TOKEN;
1534-
#endif
15351531
}
15361532

15371533
} // end else

GeneralsMD/Code/GameEngine/Source/Common/INI/INI.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1530,10 +1530,6 @@ void INI::initFromINIMulti( void *what, const MultiIniFieldParse& parseTableList
15301530
{
15311531
DEBUG_ASSERTCRASH( 0, ("[LINE: %d - FILE: '%s'] Unknown field '%s' in block '%s'",
15321532
INI::getLineNum(), INI::getFilename().str(), field, m_curBlockStart) );
1533-
#if !defined(RTS_DEBUG)
1534-
// Just ignore unknown fields in debug builds
1535-
throw INI_UNKNOWN_TOKEN;
1536-
#endif
15371533
}
15381534

15391535
} // end else

0 commit comments

Comments
 (0)