Skip to content

Commit

Permalink
fix unused variable in the iterator
Browse files Browse the repository at this point in the history
  • Loading branch information
CelticMinstrel committed Feb 22, 2021
1 parent 89af297 commit daa00be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/scripting/lua_terrainmap.cpp
Expand Up @@ -406,7 +406,7 @@ static int impl_terrainmap_iter(lua_State* L)

int intf_terrainmap_iter(lua_State* L)
{
gamemap_base& tm = luaW_checkterrainmap(L, 1);
luaW_checkterrainmap(L, 1);
bool with_border = lua_isboolean(L, 2) ? luaW_toboolean(L, 2) : false;
lua_settop(L, 1);
luaW_pushlocation(L, map_location(with_border ? -1 : 0, 1, wml_loc{}));
Expand Down

0 comments on commit daa00be

Please sign in to comment.