Resolve Lua language server diagnosed problems.
This commit is contained in:
committed by
abcdefg30
parent
3d0efa1cbe
commit
378f66a1ff
@@ -47,7 +47,7 @@ SamSiteGoal = 3
|
||||
|
||||
CaptureStructures = function(actor)
|
||||
for i = 1, #WhitelistedStructures do
|
||||
structures = Nod.GetActorsByType(WhitelistedStructures[i])
|
||||
local structures = Nod.GetActorsByType(WhitelistedStructures[i])
|
||||
if #structures > 0 and not actor.IsDead and not structures[1].IsDead then
|
||||
actor.Capture(structures[1])
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user