mirror of
https://github.com/ValveSoftware/source-sdk-2013.git
synced 2025-04-09 11:31:23 +00:00
shared: Fix SCHEMA_INIT_CHECK checking not expected arguments
Closes #852
This commit is contained in:
parent
0759e2e8e1
commit
e05f048926
2 changed files with 2 additions and 2 deletions
|
@ -4844,7 +4844,7 @@ bool CEconItemSchema::BInitGameInfo( KeyValues *pKVGameInfo, CUtlVector<CUtlStri
|
|||
m_unFirstValidClassItemSlot = pKVGameInfo->GetInt( "first_valid_item_slot", INVALID_EQUIPPED_SLOT );
|
||||
m_unLastValidClassItemSlot = pKVGameInfo->GetInt( "last_valid_item_slot", INVALID_EQUIPPED_SLOT );
|
||||
SCHEMA_INIT_CHECK( INVALID_EQUIPPED_SLOT != m_unFirstValidClassItemSlot, "first_valid_item_slot not set!" );
|
||||
SCHEMA_INIT_CHECK( INVALID_EQUIPPED_SLOT != m_unFirstValidClassItemSlot, "last_valid_item_slot not set!" );
|
||||
SCHEMA_INIT_CHECK( INVALID_EQUIPPED_SLOT != m_unLastValidClassItemSlot, "last_valid_item_slot not set!" );
|
||||
SCHEMA_INIT_CHECK( m_unFirstValidClassItemSlot <= m_unLastValidClassItemSlot, "First valid item slot must be less than or equal to last valid item slot." );
|
||||
|
||||
m_unFirstValidAccountItemSlot = pKVGameInfo->GetInt( "account_first_valid_item_slot", INVALID_EQUIPPED_SLOT );
|
||||
|
|
|
@ -152,7 +152,7 @@ bool CWarDefinition::CWarSideDefinition_t::BInitFromKV( const char* pszContainin
|
|||
SCHEMA_INIT_CHECK( m_pszLocalizedName != NULL, "war definition %s side %s missing side localization name", pszContainingWarName, pKVSide->GetName() );
|
||||
|
||||
m_pszLeaderboardName = pKVSide->GetString( "leaderboard_name", NULL );
|
||||
SCHEMA_INIT_CHECK( m_pszLocalizedName != NULL, "war definition %s side %s missing side leaderboard name", pszContainingWarName, pKVSide->GetName() );
|
||||
SCHEMA_INIT_CHECK( m_pszLeaderboardName != NULL, "war definition %s side %s missing side leaderboard name", pszContainingWarName, pKVSide->GetName() );
|
||||
|
||||
//TODO BRETT: Grab the leaderboard now?
|
||||
return SCHEMA_INIT_SUCCESS();
|
||||
|
|
Loading…
Reference in a new issue