mirror of https://github.com/OpenRCT2/OpenRCT2.git
Fix assert with some custom objects
This commit is contained in:
parent
953bb4ee91
commit
4f3449cfcf
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue