Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Tensuko committed Oct 6, 2023
1 parent b8bfa01 commit 083c4cd
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions scripts/ai/AIDriveStrategyCombineCourse.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1423,10 +1423,15 @@ end
function AIDriveStrategyCombineCourse:isAGoodTrailerInRange()
local _, trailer = self.pipeController:isFillableTrailerUnderPipe()
local unloaderVehicle = trailer and trailer:getRootVehicle()
if unloaderVehicle and AIDriveStrategyUnloadCombine.isActiveCpCombineUnloader(unloaderVehicle) then

if unloaderVehicle == nil then
return false
end

if AIDriveStrategyUnloadCombine.isActiveCpCombineUnloader(unloaderVehicle) then
return unloaderVehicle:getCpDriveStrategy():getCombineToUnload() == self.vehicle
else
return false
return true
end
end

Expand Down

0 comments on commit 083c4cd

Please sign in to comment.