aboutsummaryrefslogtreecommitdiff
path: root/src/mg_decoration.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mg_decoration.h')
-rw-r--r--src/mg_decoration.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/mg_decoration.h b/src/mg_decoration.h
index 6a48796d8..968c78612 100644
--- a/src/mg_decoration.h
+++ b/src/mg_decoration.h
@@ -64,8 +64,8 @@ struct CutoffData {
class Decoration : public ObjDef, public NodeResolver {
public:
- Decoration();
- virtual ~Decoration();
+ Decoration() {};
+ virtual ~Decoration() {};
virtual void resolveNodeNames();
@@ -76,13 +76,13 @@ public:
virtual size_t generate(MMVManip *vm, PcgRandom *pr, v3s16 p) = 0;
virtual int getHeight() = 0;
- u32 flags;
- int mapseed;
+ u32 flags = 0;
+ int mapseed = 0;
std::vector<content_t> c_place_on;
- s16 sidelen;
+ s16 sidelen = 1;
s16 y_min;
s16 y_max;
- float fill_ratio;
+ float fill_ratio = 0.0f;
NoiseParams np;
std::vector<content_t> c_spawnby;
s16 nspawnby;
@@ -104,13 +104,13 @@ public:
class DecoSchematic : public Decoration {
public:
- DecoSchematic();
+ DecoSchematic() {};
virtual size_t generate(MMVManip *vm, PcgRandom *pr, v3s16 p);
virtual int getHeight();
Rotation rotation;
- Schematic *schematic;
+ Schematic *schematic = nullptr;
};