mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
Fix ddnet ex snap item registration (closed #8271)
This commit is contained in:
parent
f0e804c575
commit
3c45134c8d
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue