Fix bug preventing regenerating units from retreating with experimental AI
(thanks mattsc)
This commit is contained in:
parent
9d098188e4
commit
3c41b7c75a
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue