1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-22 22:34:33 +01:00

Addendum to #15340: guard size of object_entry_group_counts

This commit is contained in:
Michael Steenbeek
2021-09-05 16:06:34 +02:00
committed by GitHub
parent bdf300bcdb
commit 7b2554cdae
2 changed files with 21 additions and 11 deletions

View File

@@ -18,6 +18,7 @@
#include "ObjectRepository.h"
#include <algorithm>
#include <array>
#include <cstring>
// 98DA00
@@ -41,6 +42,7 @@ int32_t object_entry_group_counts[] = {
MAX_FOOTPATH_SURFACE_OBJECTS,
MAX_FOOTPATH_RAILINGS_OBJECTS,
};
static_assert(std::size(object_entry_group_counts) == EnumValue(ObjectType::Count));
// 98DA2C
int32_t object_entry_group_encoding[] = {