Skip to content

Commit

Permalink
fix unused variable in terrain_mask
Browse files Browse the repository at this point in the history
  • Loading branch information
CelticMinstrel committed Feb 22, 2021
1 parent daa00be commit 0a82095
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/scripting/lua_terrainmap.cpp
Expand Up @@ -521,7 +521,7 @@ int intf_terrain_mask(lua_State *L)
if(lua_isstring(L, 3)) {
const std::string t_str = luaL_checkstring(L, 2);
std::unique_ptr<gamemap_base> mask;
if(auto gmap = dynamic_cast<gamemap*>(&map)) {
if(dynamic_cast<gamemap*>(&map)) {
auto mask_ptr = new gamemap("");
mask_ptr->read(t_str, false);
mask.reset(mask_ptr);
Expand Down

0 comments on commit 0a82095

Please sign in to comment.