mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-02-02 19:56:13 +01:00
Fix #7171: Clicking any ride that has custom designs crashes
Wrong argument was being passed to object_entry_get_entry.
This commit is contained in:
@@ -105,7 +105,7 @@ bool find_object_in_entry_group(const rct_object_entry * entry, uint8 * entry_ty
|
||||
{
|
||||
if (object_entry_get_chunk(objectType, i) != nullptr)
|
||||
{
|
||||
auto thisEntry = object_entry_get_entry(*entry_type, i);
|
||||
auto thisEntry = object_entry_get_entry(objectType, i);
|
||||
if (object_entry_compare(thisEntry, entry))
|
||||
{
|
||||
*entry_type = objectType;
|
||||
|
||||
Reference in New Issue
Block a user