Fix station number check (#10979)

This commit is contained in:
Michael Steenbeek authored and GitHub committed 2020-03-20 13:10:40 +01:00
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);