Skip to content
Snippets Groups Projects
Commit 2f134ce2 authored by kwolekr's avatar kwolekr
Browse files

Mapgen V5: Fix use of uninitialized value in ctor

parent 390c0cd6
No related branches found
No related tags found
No related merge requests found
...@@ -47,10 +47,10 @@ FlagDesc flagdesc_mapgen_v5[] = { ...@@ -47,10 +47,10 @@ FlagDesc flagdesc_mapgen_v5[] = {
}; };
MapgenV5::MapgenV5(int mapgenid, MapgenParams *params, EmergeManager *emerge_) MapgenV5::MapgenV5(int mapgenid, MapgenParams *params, EmergeManager *emerge)
: Mapgen(mapgenid, params, emerge) : Mapgen(mapgenid, params, emerge)
{ {
this->emerge = emerge_; this->emerge = emerge;
this->bmgr = emerge->biomemgr; this->bmgr = emerge->biomemgr;
// amount of elements to skip for the next index // amount of elements to skip for the next index
......
...@@ -89,7 +89,7 @@ class MapgenV5 : public Mapgen { ...@@ -89,7 +89,7 @@ class MapgenV5 : public Mapgen {
content_t c_stair_cobble; content_t c_stair_cobble;
content_t c_stair_sandstone; content_t c_stair_sandstone;
MapgenV5(int mapgenid, MapgenParams *params, EmergeManager *emerge_); MapgenV5(int mapgenid, MapgenParams *params, EmergeManager *emerge);
~MapgenV5(); ~MapgenV5();
virtual void makeChunk(BlockMakeData *data); virtual void makeChunk(BlockMakeData *data);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment