Skip to content

Commit

Permalink
correct AllowBuilderHoldFire, hopefully fixes #5213
Browse files Browse the repository at this point in the history
My mistake in 5108698.
  • Loading branch information
cleanrock committed Apr 23, 2016
1 parent 8ddace8 commit f5c8308
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cont/base/springcontent/LuaGadgets/gadgets.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1199,8 +1199,8 @@ end


function gadgetHandler:AllowBuilderHoldFire(unitID, unitDefID, action)
for _,g in r_ipairs(self.AllowBuilderHoldFire) do
if (not AllowBuilderHoldFire(unitID, unitDefID, action)) then
for _,g in r_ipairs(self.AllowBuilderHoldFireList) do
if (not g:AllowBuilderHoldFire(unitID, unitDefID, action)) then
return false
end
end
Expand Down

0 comments on commit f5c8308

Please sign in to comment.