Fix another syntax error

This commit is contained in:
Celtic Minstrel 2021-03-04 23:43:24 -05:00 committed by GitHub
parent 86c3c30c46
commit 93398ae3a4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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