Fix bug preventing regenerating units from retreating with experimental AI

(thanks mattsc)
This commit is contained in:
Simon Forsyth 2013-02-16 03:11:14 +00:00
parent 9d098188e4
commit 3c41b7c75a

View file

@ -54,7 +54,7 @@ function retreat_functions.retreat_injured_units(units)
-- Then we retreat regenerating units to terrain with high defense
if regen[1] then
local action = retreat_functions.get_retreat_injured_units(regen, false)
local unit, loc = retreat_functions.get_retreat_injured_units(regen, false)
if unit then
return unit, loc
end