1
0
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:
Michael Steenbeek
2020-03-20 13:10:40 +01:00
committed by GitHub
parent 828eef7411
commit 4cc2bc469a

View File

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