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:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user