Skip to content

Commit

Permalink
Small bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
schwiti6190 committed Mar 26, 2022
1 parent 5c7d78d commit 0741a2f
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions scripts/ai/jobs/CpAIJobFieldWork.lua
Original file line number Diff line number Diff line change
Expand Up @@ -124,9 +124,12 @@ function CpAIJobFieldWork:validate(farmId)
self.cpJobParameters:validateSettings()
local vehicle = self.vehicleParameter:getVehicle()

isValid, errorMessage = self:validateFieldSetup(isValid, errorMessage)
if not isValid then
return isValid, errorMessage
--- Only check the valid field position in the in game menu.
if not self.isDirectStart then
isValid, errorMessage = self:validateFieldSetup(isValid, errorMessage)
if not isValid then
return isValid, errorMessage
end
end

if not vehicle:hasCpCourse() then
Expand Down

0 comments on commit 0741a2f

Please sign in to comment.