l_mapgen.cpp: Fix LINT broken since b1b40fe
authorSmallJoker <mk939@ymail.com>
Tue, 21 May 2019 17:16:01 +0000 (19:16 +0200)
committerSmallJoker <mk939@ymail.com>
Tue, 21 May 2019 17:16:01 +0000 (19:16 +0200)
src/script/lua_api/l_mapgen.cpp

index cb1dc1fffbdf680de9960c31b80eb1fae561a61b..e7e002c160fc439e374929403cbf5aa927fa122b 100644 (file)
@@ -410,7 +410,7 @@ Biome *read_biome_def(lua_State *L, int index, const NodeDefManager *ndef)
        // If no cave liquids defined, set list to "ignore" to trigger old hardcoded
        // cave liquid behaviour.
        if (nnames == 0) {
-               nn.push_back("ignore");
+               nn.emplace_back("ignore");
                nnames = 1;
        }
        b->m_nnlistsizes.push_back(nnames);