Skip to content

Commit 5d793ea

Browse files
committed
add "customitem" item definition val
1 parent f578d33 commit 5d793ea

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/game/shared/econ/econ_item_schema.cpp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3182,7 +3182,12 @@ bool CEconItemDefinition::BInitFromKV( KeyValues *pKVItem, CUtlVector<CUtlString
31823182
m_bBaseItem = m_pKVItem->GetInt( "baseitem", 0 ) != 0;
31833183
#ifdef BDSBASE
31843184
#ifdef BDSBASE_CUSTOM_SCHEMA
3185-
m_bSoloItem = m_pKVItem->GetInt("soloitem", 0) != 0;
3185+
m_bSoloItem = m_pKVItem->GetInt("customitem", 0) != 0;
3186+
3187+
if (!m_bSoloItem)
3188+
{
3189+
m_bSoloItem = m_pKVItem->GetInt("soloitem", 0) != 0;
3190+
}
31863191
#else
31873192
//if there's no custom schema, no items can be solo items.
31883193
m_bSoloItem = false;

0 commit comments

Comments
 (0)