mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-16 03:23:15 +01:00
Fix station number check (#10979)
This commit is contained in:
committed by
GitHub
parent
828eef7411
commit
4cc2bc469a
@@ -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