Fix inverted condition in ScTileElement.hpp

This commit is contained in:
Sadret 2022-05-17 19:25:28 +02:00 committed by Gymnasiast
parent 44843d8512
commit 4cc2f31181
No known key found for this signature in database
GPG Key ID: DBFFF47AB2CA3EDD
1 changed files with 1 additions and 1 deletions

View File

@ -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();