mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2025-12-24 00:03:11 +01:00
Fix #14612: Crash in research_insert_ride_entry()
This commit is contained in:
committed by
GitHub
parent
ba6407f649
commit
6405d0246c
@@ -507,6 +507,9 @@ bool research_insert_ride_entry(uint8_t rideType, ObjectEntryIndex entryIndex, R
|
||||
void research_insert_ride_entry(ObjectEntryIndex entryIndex, bool researched)
|
||||
{
|
||||
rct_ride_entry* rideEntry = get_ride_entry(entryIndex);
|
||||
if (rideEntry == nullptr)
|
||||
return;
|
||||
|
||||
for (auto rideType : rideEntry->ride_type)
|
||||
{
|
||||
if (rideType != RIDE_TYPE_NULL)
|
||||
|
||||
Reference in New Issue
Block a user