Skip to content

Commit

Permalink
Fix for Stephan-S#441
Browse files Browse the repository at this point in the history
  • Loading branch information
Achimobil committed Mar 29, 2022
1 parent 60c19d4 commit 7db2fa5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/Specialization.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1281,8 +1281,8 @@ function AutoDrive:onStopAutoDrive(isPassingToCP, isStartingAIVE)
g_helperManager:releaseHelper(self.ad.currentHelper)
end
if self.spec_aiJobVehicle ~= nil and self.spec_aiJobVehicle.currentHelper ~= nil and self.spec_aiJobVehicle.currentHelper == self.ad.currentHelper then
-- we assign a helper for spec_aiJobVehicle, but do not remove it!
-- self.spec_aiJobVehicle.currentHelper = nil
-- we assign a helper for spec_aiJobVehicle and we have to remove it, wehen Autodrive stops.
self.spec_aiJobVehicle.currentHelper = nil
end
self.ad.currentHelper = nil
self.ad.stateModule:setCurrentHelperIndex(0)
Expand Down

0 comments on commit 7db2fa5

Please sign in to comment.