aboutsummaryrefslogtreecommitdiff
path: root/src/mapgen
diff options
context:
space:
mode:
Diffstat (limited to 'src/mapgen')
-rw-r--r--src/mapgen/dungeongen.h2
-rw-r--r--src/mapgen/mapgen_singlenode.cpp2
-rw-r--r--src/mapgen/mapgen_singlenode.h1
3 files changed, 1 insertions, 4 deletions
diff --git a/src/mapgen/dungeongen.h b/src/mapgen/dungeongen.h
index ad32cf192..2748524c5 100644
--- a/src/mapgen/dungeongen.h
+++ b/src/mapgen/dungeongen.h
@@ -64,7 +64,7 @@ struct DungeonParams {
class DungeonGen {
public:
- MMVManip *vm;
+ MMVManip *vm = nullptr;
const NodeDefManager *ndef;
GenerateNotifier *gennotify;
diff --git a/src/mapgen/mapgen_singlenode.cpp b/src/mapgen/mapgen_singlenode.cpp
index a4cde7ece..76f7e6e8e 100644
--- a/src/mapgen/mapgen_singlenode.cpp
+++ b/src/mapgen/mapgen_singlenode.cpp
@@ -33,8 +33,6 @@ MapgenSinglenode::MapgenSinglenode(int mapgenid,
MapgenParams *params, EmergeManager *emerge)
: Mapgen(mapgenid, params, emerge)
{
- flags = params->flags;
-
const NodeDefManager *ndef = emerge->ndef;
c_node = ndef->getId("mapgen_singlenode");
diff --git a/src/mapgen/mapgen_singlenode.h b/src/mapgen/mapgen_singlenode.h
index 6f13256f1..ebfb3c729 100644
--- a/src/mapgen/mapgen_singlenode.h
+++ b/src/mapgen/mapgen_singlenode.h
@@ -35,7 +35,6 @@ struct MapgenSinglenodeParams : public MapgenParams
class MapgenSinglenode : public Mapgen
{
public:
- u32 flags;
content_t c_node;
u8 set_light;