From 02e2f21ec6da774b793310be50a9bbbd2e72d4b2 Mon Sep 17 00:00:00 2001 From: FlightControl Date: Fri, 5 May 2017 10:57:29 +0200 Subject: [PATCH] test good abort when more than one player is still assigned to the task, the task should not abort, only the player... --- Moose Development/Moose/Tasking/Task.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Moose Development/Moose/Tasking/Task.lua b/Moose Development/Moose/Tasking/Task.lua index be5fb9b0d..e5b69426f 100644 --- a/Moose Development/Moose/Tasking/Task.lua +++ b/Moose Development/Moose/Tasking/Task.lua @@ -287,8 +287,8 @@ function TASK:AbortUnit( PlayerUnit ) -- It will go to hold, if there are no players in the mission... local IsRemaining = false - for GroupName, GroupData in pairs( PlayerGroups ) do - IsRemaining = ( IsRemaining == false ) and self:IsGroupAssigned( PlayerGroup ) or IsRemaining + for GroupName, AssignedGroup in pairs( PlayerGroups ) do + IsRemaining = ( IsRemaining == false ) and self:IsGroupAssigned( AssignedGroup ) or IsRemaining end if IsRemaining == false then