mirror of https://github.com/OpenRCT2/OpenRCT2.git
Fix #15319: Clicking on Object Selection Cheat Freezes the Game
This fixes it by adding limits for the missing path types. Co-authored-by: ζeh Matt <5415177+ZehMatt@users.noreply.github.com>
This commit is contained in:
parent
26a26e9e34
commit
fd2a572f9a
|
@ -26,6 +26,8 @@ constexpr const uint16_t MAX_TERRAIN_SURFACE_OBJECTS = 18;
|
|||
constexpr const uint16_t MAX_TERRAIN_EDGE_OBJECTS = 255;
|
||||
constexpr const uint16_t MAX_STATION_OBJECTS = 255;
|
||||
constexpr const uint16_t MAX_MUSIC_OBJECTS = 255;
|
||||
constexpr const uint16_t MAX_FOOTPATH_SURFACE_OBJECTS = 255;
|
||||
constexpr const uint16_t MAX_FOOTPATH_RAILINGS_OBJECTS = 255;
|
||||
|
||||
// clang-format off
|
||||
constexpr const uint16_t OBJECT_ENTRY_COUNT =
|
||||
|
@ -39,7 +41,13 @@ constexpr const uint16_t OBJECT_ENTRY_COUNT =
|
|||
MAX_SCENERY_GROUP_OBJECTS +
|
||||
MAX_PARK_ENTRANCE_OBJECTS +
|
||||
MAX_WATER_OBJECTS +
|
||||
MAX_SCENARIO_TEXT_OBJECTS;
|
||||
MAX_SCENARIO_TEXT_OBJECTS +
|
||||
MAX_TERRAIN_SURFACE_OBJECTS +
|
||||
MAX_TERRAIN_EDGE_OBJECTS +
|
||||
MAX_STATION_OBJECTS +
|
||||
MAX_MUSIC_OBJECTS +
|
||||
MAX_FOOTPATH_SURFACE_OBJECTS +
|
||||
MAX_FOOTPATH_RAILINGS_OBJECTS;
|
||||
// clang-format on
|
||||
|
||||
constexpr const uint8_t DAT_NAME_LENGTH = 8;
|
||||
|
|
|
@ -38,6 +38,8 @@ int32_t object_entry_group_counts[] = {
|
|||
MAX_TERRAIN_EDGE_OBJECTS,
|
||||
MAX_STATION_OBJECTS,
|
||||
MAX_MUSIC_OBJECTS,
|
||||
MAX_FOOTPATH_SURFACE_OBJECTS,
|
||||
MAX_FOOTPATH_RAILINGS_OBJECTS,
|
||||
};
|
||||
|
||||
// 98DA2C
|
||||
|
|
Loading…
Reference in New Issue