No need to include border hexes in the AI's avoid aspect (Lua).
This commit is contained in:
parent
7f82271b03
commit
6c217576f9
1 changed files with 1 additions and 1 deletions
|
@ -342,7 +342,7 @@ static int cfun_ai_get_avoid(lua_State *L)
|
|||
{
|
||||
std::set<map_location> locs;
|
||||
terrain_filter avoid = get_readonly_context(L).get_avoid();
|
||||
avoid.get_locations(locs, true); // is it true here?
|
||||
avoid.get_locations(locs);
|
||||
|
||||
int sz = locs.size();
|
||||
lua_createtable(L, sz, 0); // create a table that we'll use as an array
|
||||
|
|
Loading…
Add table
Reference in a new issue