mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-04 13:42:55 +01:00
Fix inverted condition in ScTileElement.hpp
This commit is contained in:
@@ -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