Remove incorrect check from CmdScheduledDispatchAdjust

This commit is contained in:
Jonathan G Rennison 2024-01-27 23:23:59 +00:00
parent 1edc828b76
commit dee611f5f3

View File

@ -577,7 +577,6 @@ CommandCost CmdScheduledDispatchAdjust(TileIndex tile, DoCommandFlag flags, uint
if (ret.Failed()) return ret;
if (v->orders == nullptr) return CMD_ERROR;
if (v->orders->GetScheduledDispatchScheduleCount() >= 4096) return CMD_ERROR;
if (schedule_index >= v->orders->GetScheduledDispatchScheduleCount()) return CMD_ERROR;