aboutsummaryrefslogtreecommitdiff
path: root/src/mapgen/mapgen_fractal.cpp
diff options
context:
space:
mode:
authorLoïc Blot <loic.blot@unix-experience.fr>2019-03-25 16:42:53 +0100
committerLoïc Blot <nerzhul@users.noreply.github.com>2019-03-31 20:49:39 +0200
commitb55fc3d773e2049d99a01ea2aa4e37774e81410b (patch)
tree13215d9ff90bca74542984e7f7726b70bca69829 /src/mapgen/mapgen_fractal.cpp
parentb3716a03a6d47058b50acfc71c861ecfea5f80ad (diff)
downloadminetest-b55fc3d773e2049d99a01ea2aa4e37774e81410b.tar.gz
minetest-b55fc3d773e2049d99a01ea2aa4e37774e81410b.tar.bz2
minetest-b55fc3d773e2049d99a01ea2aa4e37774e81410b.zip
mapgen: drop mapgen id from child mapgens.
This id must be owned by the child mapgen and never be set to a misc value by a developer Also use nullptr in some places
Diffstat (limited to 'src/mapgen/mapgen_fractal.cpp')
-rw-r--r--src/mapgen/mapgen_fractal.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mapgen/mapgen_fractal.cpp b/src/mapgen/mapgen_fractal.cpp
index 68a66bba9..47699b8a2 100644
--- a/src/mapgen/mapgen_fractal.cpp
+++ b/src/mapgen/mapgen_fractal.cpp
@@ -47,8 +47,8 @@ FlagDesc flagdesc_mapgen_fractal[] = {
///////////////////////////////////////////////////////////////////////////////////////
-MapgenFractal::MapgenFractal(int mapgenid, MapgenFractalParams *params, EmergeManager *emerge)
- : MapgenBasic(mapgenid, params, emerge)
+MapgenFractal::MapgenFractal(MapgenFractalParams *params, EmergeManager *emerge)
+ : MapgenBasic(MAPGEN_FRACTAL, params, emerge)
{
spflags = params->spflags;
cave_width = params->cave_width;