Fix crash in Allies 05a on SamBarrel kill

This commit is contained in:
Smittytron
2021-01-30 16:39:56 -06:00
committed by abcdefg30
parent 3422bf1b59
commit c2379f251d

View File

@@ -329,7 +329,11 @@ InitTriggers = function()
end
end)
Trigger.OnKilled(SamBarrel, Sam1.Kill)
Trigger.OnKilled(SamBarrel, function()
if not Sam1.IsDead then
Sam1.Kill()
end
end)
Trigger.OnAllKilled(SamSites, function()
greece.MarkCompletedObjective(KillSams)