Fix potentially bogus usages of OnAllRemovedFromWorld

This commit is contained in:
abcdefg30
2019-09-07 23:41:01 +02:00
committed by reaperrr
parent 31918e8712
commit aee9ee6187
4 changed files with 11 additions and 12 deletions

View File

@@ -189,8 +189,8 @@ InitTriggers = function()
end
end)
end)
Trigger.OnAllRemovedFromWorld(FirstUSSRBase, function()
if baseCamera then
Trigger.OnAllKilledOrCaptured(FirstUSSRBase, function()
if baseCamera and baseCamera.IsInWorld then
baseCamera.Destroy()
end
end)