Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Corrected segfault when registering new biomes.
- Loading branch information
Showing
with
1 addition
and
1 deletion.
-
+1
−1
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; |
|
|
} |
|
|
|
|
|