Fix potentially bogus usages of OnAllRemovedFromWorld
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user