kingdoms: lua error in determining region owner

This commit is contained in:
Enno Rehling 2005-11-26 01:31:35 +00:00
parent ba2e0fef8c
commit 7f0b8f98d1
1 changed files with 5 additions and 3 deletions

View File

@ -38,11 +38,13 @@ function update_owners()
end end
end end
local u local u
if b ~=nil then
u = b.units() u = b.units()
if u~=nil and u.faction~=r.owner then if u~=nil and u.faction~=r.owner then
r.owner = u.faction r.owner = u.faction
end end
end end
end
end end
function process(orders) function process(orders)