Updated defects in dispatcher

This commit is contained in:
FlightControl_Master
2017-08-01 17:35:53 +02:00
parent 9ec29f607f
commit 9054a493f9
6 changed files with 160 additions and 43 deletions

View File

@@ -340,7 +340,7 @@ function CONTROLLABLE:SetTask( DCSTask, WaitTime )
-- Therefore we schedule the functions to set the mission and options for the Controllable.
-- Controller.setTask( Controller, DCSTask )
if not WaitTime then
if not WaitTime or WaitTime == 0 then
Controller:setTask( DCSTask )
else
self.TaskScheduler:Schedule( Controller, Controller.setTask, { DCSTask }, WaitTime )