1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-16 19:43:06 +01:00

Make all access to RTD table use the bounds checking function

This commit is contained in:
Gymnasiast
2021-02-26 10:01:00 +01:00
parent 62f8796677
commit 44d0e77afb
31 changed files with 93 additions and 93 deletions

View File

@@ -92,7 +92,7 @@ static void setup_track_designer_objects()
{
if (rideType != RIDE_TYPE_NULL)
{
if (RideTypeDescriptors[rideType].HasFlag(RIDE_TYPE_FLAG_SHOW_IN_TRACK_DESIGNER))
if (GetRideTypeDescriptor(rideType).HasFlag(RIDE_TYPE_FLAG_SHOW_IN_TRACK_DESIGNER))
{
*selectionFlags &= ~OBJECT_SELECTION_FLAG_6;
break;