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:
parent
915dfaa399
commit
bad574f7c8
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue