From 4cc2f3118142ba995c016ae70e87c40f1ffc4f52 Mon Sep 17 00:00:00 2001 From: Sadret Date: Tue, 17 May 2022 19:25:28 +0200 Subject: [PATCH] Fix inverted condition in ScTileElement.hpp --- src/openrct2/scripting/bindings/world/ScTileElement.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/openrct2/scripting/bindings/world/ScTileElement.cpp b/src/openrct2/scripting/bindings/world/ScTileElement.cpp index 37a12f6326..3ac16018b2 100644 --- a/src/openrct2/scripting/bindings/world/ScTileElement.cpp +++ b/src/openrct2/scripting/bindings/world/ScTileElement.cpp @@ -459,7 +459,7 @@ namespace OpenRCT2::Scripting try { - if (value < RIDE_TYPE_COUNT) + if (value >= RIDE_TYPE_COUNT) throw DukException() << "'rideType' value is invalid."; auto* el = _element->AsTrack();