diff --git a/src/game/shared/econ/econ_item_schema.cpp b/src/game/shared/econ/econ_item_schema.cpp index 50bbea303..ba3ef079b 100644 --- a/src/game/shared/econ/econ_item_schema.cpp +++ b/src/game/shared/econ/econ_item_schema.cpp @@ -4844,7 +4844,7 @@ bool CEconItemSchema::BInitGameInfo( KeyValues *pKVGameInfo, CUtlVectorGetInt( "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 ); diff --git a/src/game/shared/tf/tf_wardata.cpp b/src/game/shared/tf/tf_wardata.cpp index e0df0b916..d2fa308fa 100644 --- a/src/game/shared/tf/tf_wardata.cpp +++ b/src/game/shared/tf/tf_wardata.cpp @@ -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();