Fix assert with some custom objects

This commit is contained in:
Aaron van Geffen 2024-04-12 21:52:21 +02:00 committed by GitHub
parent 953bb4ee91
commit 4f3449cfcf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -562,7 +562,7 @@ namespace Editor
{
if (index != OBJECT_ENTRY_INDEX_NULL)
{
assert(index < getObjectEntryGroupCount(ObjectType::Paths));
assert(static_cast<size_t>(objectType) < getObjectEntryGroupCount(ObjectType::Paths));
auto& list = _editorSelectedObjectFlags[EnumValue(objectType)];
if (list.size() <= index)
{