1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-02-02 03:35:09 +01:00

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

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)
{