forked from rosebudai/OpenRCT2-Web
Fix station number check (#10979)
This commit is contained in:
1 parent
828eef7411
commit
4cc2bc469a
1 file changed
+1
-1
@@ -67,7 +67,7 @@ public:
|
||||
return MakeResult(GA_ERROR::INVALID_PARAMETERS, errorTitle);
|
||||
}
|
||||
|
||||
if (_stationNum > MAX_STATIONS)
|
||||
if (_stationNum >= MAX_STATIONS)
|
||||
{
|
||||
log_warning("Invalid station number for ride. stationNum: %u", _stationNum);
|
||||
return MakeResult(GA_ERROR::INVALID_PARAMETERS, errorTitle);
|
||||
|
||||
Reference in new issue
Block a user