Skip to content

Commit

Permalink
Fix a typo
Browse files Browse the repository at this point in the history
  • Loading branch information
mattsc committed Apr 18, 2014
1 parent f6cdd85 commit 19eff08
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions data/ai/lua/ai_helper.lua
Expand Up @@ -1226,10 +1226,10 @@ function ai_helper.get_attacks(units, cfg)
-- If there's no unit of another side on this hex, include it
-- as possible attack location (this includes hexes occupied
-- by own units at this time)
if (not other_unit_map:get(xa, xa)) then
local target_table = attack_hex_map:get(xa, xa) or {}
if (not other_unit_map:get(xa, ya)) then
local target_table = attack_hex_map:get(xa, ya) or {}
table.insert(target_table, { x = e_x, y = e_y, i = i })
attack_hex_map:insert(xa, xa, target_table)
attack_hex_map:insert(xa, ya, target_table)
end
end
end)
Expand Down

0 comments on commit 19eff08

Please sign in to comment.