LuaAI: renamed first and second to src and dst respectively,
...in the movements table of the exposed attacks vector
This commit is contained in:
parent
10a7f1dfe0
commit
617404ef11
1 changed files with 2 additions and 2 deletions
|
@ -540,11 +540,11 @@ static void push_movements(lua_State *L, const std::vector< std::pair < map_loca
|
|||
{
|
||||
lua_createtable(L, 2, 0); // Creating a table for a pair of map_location's
|
||||
|
||||
lua_pushstring(L, "first");
|
||||
lua_pushstring(L, "src");
|
||||
push_map_location(L, move->first);
|
||||
lua_rawset(L, -3);
|
||||
|
||||
lua_pushstring(L, "second");
|
||||
lua_pushstring(L, "dst");
|
||||
push_map_location(L, move->second);
|
||||
lua_rawset(L, -3);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue