From 710e0e30db2ce14ba3daceed4a24ec49e4cd712f Mon Sep 17 00:00:00 2001 From: Michael Steenbeek Date: Wed, 27 Jul 2022 12:44:15 +0200 Subject: [PATCH] Replace ride type check in S4Importer This is more preparation needed to make ride types into objects. Supersedes #17209. --- src/openrct2/rct1/S4Importer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/openrct2/rct1/S4Importer.cpp b/src/openrct2/rct1/S4Importer.cpp index e66be149c7..56e47890ee 100644 --- a/src/openrct2/rct1/S4Importer.cpp +++ b/src/openrct2/rct1/S4Importer.cpp @@ -1158,7 +1158,7 @@ namespace RCT1 // In RCT1 and AA, the maze was always hedges. // LL has 4 types, like RCT2. For LL, only guard against invalid values. - if (dst->type == RIDE_TYPE_MAZE) + if (src->type == RideType::HedgeMaze) { if (_gameVersion < FILE_VERSION_RCT1_LL || src->track_colour_supports[0] > 3) dst->track_colour[0].supports = MAZE_WALL_TYPE_HEDGE;