aboutsummaryrefslogtreecommitdiff
path: root/src/script/lua_api
diff options
context:
space:
mode:
authorkwolekr <kwolekr@minetest.net>2015-03-20 18:40:18 -0400
committerkwolekr <kwolekr@minetest.net>2015-03-20 18:41:26 -0400
commit26153bab7dbe57a0200949c9a121058150e67f6c (patch)
treecda3013a86b95c29779b977aa95c03e1fac4be00 /src/script/lua_api
parentd03c2999daafaff5b48948bb97a5854f5fb56484 (diff)
downloadminetest-26153bab7dbe57a0200949c9a121058150e67f6c.tar.gz
minetest-26153bab7dbe57a0200949c9a121058150e67f6c.tar.bz2
minetest-26153bab7dbe57a0200949c9a121058150e67f6c.zip
Revert "Fix issue #2441: crash on respawn, since a conversion std::list to std::vector on Environment.cpp"
This reverts parts of commit 9749d9fee6db99da1ab861dc04ec63ef973db3e0, which breaks node resolver list clearing
Diffstat (limited to 'src/script/lua_api')
-rw-r--r--src/script/lua_api/l_mapgen.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/script/lua_api/l_mapgen.cpp b/src/script/lua_api/l_mapgen.cpp
index e16b0153a..a76e8625c 100644
--- a/src/script/lua_api/l_mapgen.cpp
+++ b/src/script/lua_api/l_mapgen.cpp
@@ -459,7 +459,7 @@ int ModApiMapgen::l_register_biome(lua_State *L)
}
NodeResolveInfo *nri = new NodeResolveInfo(b);
- std::vector<std::string> &nnames = nri->nodenames;
+ std::list<std::string> &nnames = nri->nodenames;
nnames.push_back(getstringfield_default(L, index, "node_top", ""));
nnames.push_back(getstringfield_default(L, index, "node_filler", ""));
nnames.push_back(getstringfield_default(L, index, "node_stone", ""));