mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2025-12-24 00:03:11 +01:00
Fix ride previews going out of bounds.
This commit is contained in:
committed by
Michael Steenbeek
parent
7503e963fd
commit
917bba777e
@@ -134,8 +134,10 @@ void object_create_identifier_name(char* string_buffer, size_t size, const rct_o
|
||||
* ecx = entry_type
|
||||
*/
|
||||
sint32 find_object_in_entry_group(const rct_object_entry* entry, uint8* entry_type, uint8* entry_index){
|
||||
if ((entry->flags & 0xF) >= _countof(object_entry_groups)) {
|
||||
return 0;
|
||||
}
|
||||
*entry_type = entry->flags & 0xF;
|
||||
|
||||
rct_object_entry_group entry_group = object_entry_groups[*entry_type];
|
||||
for (*entry_index = 0;
|
||||
*entry_index < object_entry_group_counts[*entry_type];
|
||||
|
||||
Reference in New Issue
Block a user