Merge pull request #17231 from Gymnasiast/fix/ride-type-script

Fix inverted condition in ScTileElement.hpp
This commit is contained in:
Michael Steenbeek authored and GitHub committed 2022-05-17 21:05:08 +02:00
commit 727fd39f14
1 file changed
+1 -1
@@ -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();