Merge pull request #8272 from ChillerDragon/pr_fix_snap_uuid_register

Fix ddnet ex snap item registration (closed #8271)
This commit is contained in:
heinrich5991 2024-05-01 09:56:42 +00:00 committed by GitHub
commit 2cd877f0ce
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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;
}