Fix ddnet ex snap item registration (closed #8271)

This commit is contained in:
ChillerDragon 2024-04-27 16:15:47 +08:00
parent f0e804c575
commit 3c45134c8d

View file

@ -765,8 +765,9 @@ int CSnapshotBuilder::GetExtendedItemTypeIndex(int TypeId)
}
dbg_assert(m_NumExtendedItemTypes < MAX_EXTENDED_ITEM_TYPES, "too many extended item types");
int Index = m_NumExtendedItemTypes;
m_aExtendedItemTypes[Index] = TypeId;
m_NumExtendedItemTypes++;
m_aExtendedItemTypes[Index] = TypeId;
AddExtendedItemType(Index);
return Index;
}