Skip to content

Commit

Permalink
Experimental AI: fix village_hunt CA bug
Browse files Browse the repository at this point in the history
This is really just a work around for a CA that is very much sub-par though.  I will remove this CA from the ExpAI next.
  • Loading branch information
mattsc committed Jan 2, 2020
1 parent 0ea6dcc commit 8fc6cab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion data/ai/lua/generic_rush_engine.lua
Expand Up @@ -578,7 +578,7 @@ return {
if target then
local x, y = wesnoth.find_vacant_tile(target[1], target[2], unit)
local dest = AH.next_hop(unit, x, y)
AH.checked_move(ai, unit, dest[1], dest[2])
if dest then AH.checked_move(ai, unit, dest[1], dest[2]) end
end
end

Expand Down

0 comments on commit 8fc6cab

Please sign in to comment.