Fix another syntax error
This commit is contained in:
parent
86c3c30c46
commit
93398ae3a4
1 changed files with 1 additions and 1 deletions
|
@ -11,7 +11,7 @@ function ca_recruit_random:evaluation(cfg)
|
|||
|
||||
-- Check if leader is on keep
|
||||
local leader = wesnoth.units.find_on_map { side = wesnoth.current.side, canrecruit = 'yes' }[1]
|
||||
if (not leader) or (not wesnoth.terrain_types[wesnoth.current.map[leader]).keep] then
|
||||
if (not leader) or (not wesnoth.terrain_types[wesnoth.current.map[leader]].keep) then
|
||||
return 0
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue