From 4f3449cfcf2107e4022be26c4f8b77c4c29e5a7c Mon Sep 17 00:00:00 2001 From: Aaron van Geffen Date: Fri, 12 Apr 2024 21:52:21 +0200 Subject: [PATCH] Fix assert with some custom objects --- src/openrct2/Editor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/openrct2/Editor.cpp b/src/openrct2/Editor.cpp index 660d54ddf5..0e4ebbb8a2 100644 --- a/src/openrct2/Editor.cpp +++ b/src/openrct2/Editor.cpp @@ -562,7 +562,7 @@ namespace Editor { if (index != OBJECT_ENTRY_INDEX_NULL) { - assert(index < getObjectEntryGroupCount(ObjectType::Paths)); + assert(static_cast(objectType) < getObjectEntryGroupCount(ObjectType::Paths)); auto& list = _editorSelectedObjectFlags[EnumValue(objectType)]; if (list.size() <= index) {