forked from github/server
kingdoms: lua error in determining region owner
This commit is contained in:
parent
ba2e0fef8c
commit
7f0b8f98d1
|
@ -38,12 +38,14 @@ function update_owners()
|
|||
end
|
||||
end
|
||||
local u
|
||||
if b ~=nil then
|
||||
u = b.units()
|
||||
if u~=nil and u.faction~=r.owner then
|
||||
r.owner = u.faction
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
function process(orders)
|
||||
file = "" .. get_turn()
|
||||
|
|
Loading…
Reference in New Issue