Skip to content

Commit

Permalink
Remove redundancy in check
Browse files Browse the repository at this point in the history
Just check if there is a valid objective group (i.e. remove the check of whether that group has an AddObjective function)
  • Loading branch information
maudlin27 authored and speed2CZ committed Jul 28, 2023
1 parent f28e0ae commit 96fbb66
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion SCCA_Coop_A02/SCCA_Coop_A02_script.lua
Original file line number Diff line number Diff line change
Expand Up @@ -677,7 +677,7 @@ function M2AssignSecretBaseObjective()
end
)
--Sometimes this objective can trigger before the objective group is created since this is linked to when one of the naval base units is detected
while not(ScenarioInfo.M2ObjectiveGroup.AddObjective) do
while not(ScenarioInfo.M2ObjectiveGroup) do
WaitSeconds(1)
end
ScenarioInfo.M2ObjectiveGroup:AddObjective(ScenarioInfo.M2P3Objective)
Expand Down

0 comments on commit 96fbb66

Please sign in to comment.