aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsweetbomber <ffrogger _zero_ at yahoo dot com>2013-06-03 15:59:13 +0100
committerKahrl <kahrl@gmx.net>2013-06-03 20:35:51 +0200
commit601ab852261e8db3edfbd75fe9664296513e6f97 (patch)
tree5b4113f93756a4101670f6e8337dea9610415525
parente988df0fbdd9d568889a28640c189ae022e99f8e (diff)
downloadminetest-601ab852261e8db3edfbd75fe9664296513e6f97.tar.gz
minetest-601ab852261e8db3edfbd75fe9664296513e6f97.tar.bz2
minetest-601ab852261e8db3edfbd75fe9664296513e6f97.zip
Corrected segfault when registering new biomes.
-rw-r--r--src/script/lua_api/luaapi.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/script/lua_api/luaapi.cpp b/src/script/lua_api/luaapi.cpp
index b75304b3a..6d7e32730 100644
--- a/src/script/lua_api/luaapi.cpp
+++ b/src/script/lua_api/luaapi.cpp
@@ -178,9 +178,9 @@ int ModApiBasic::l_register_biome(lua_State *L)
b->flags = 0; //reserved
b->c_top = CONTENT_IGNORE;
b->c_filler = CONTENT_IGNORE;
+ verbosestream << "register_biome: " << b->name << std::endl;
bmgr->addBiome(b);
- verbosestream << "register_biome: " << b->name << std::endl;
return 0;
}