forked from rosebudai/OpenRCT2-Web
Fix inverted condition in ScTileElement.hpp
This commit is contained in:
1 parent
44843d8512
commit
4cc2f31181
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();
|
||||
|
||||
Reference in new issue
Block a user