EI: fixed another Lua syntax error from 3783693cbe

[ci skip]

I misread the intent of that line in the original. It was supposed to clear the
var, not set it.
This commit is contained in:
Charles Dang 2018-03-25 06:28:11 +11:00
parent 915dfaa399
commit bad574f7c8

View file

@ -75,7 +75,7 @@ function wml_actions.bandit_village_capture(cfg)
for i=1,#bandit_villages do
if bandit_villages[i].x == x and bandit_villages[i].y == y then
vars[string.format("bandit_villages[%d]")] = i - 1
vars[string.format("bandit_villages[%d]", i - 1)] = nil
local visited = vars.villages_visited
vars.villages_visited = visited + 1