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:
committed by
GitHub
parent
bdf300bcdb
commit
7b2554cdae
@@ -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[] = {
|
||||
|
||||
Reference in New Issue
Block a user