1
0
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:
Ted John
2018-02-13 17:30:47 +00:00
parent 187945149f
commit 9cc8d36a03

View File

@@ -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;