Permalink
Browse files

Mapgen V5: Fix use of uninitialized value in ctor

  • Loading branch information...
kwolekr committed Dec 7, 2014
1 parent 390c0cd commit 2f134ce24fa3c9e32f0bbe063adc8114d70091de
Showing with 3 additions and 3 deletions.
  1. +2 −2 src/mapgen_v5.cpp
  2. +1 −1 src/mapgen_v5.h
@@ -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)
{
this->emerge = emerge_;
this->emerge = emerge;
this->bmgr = emerge->biomemgr;

// amount of elements to skip for the next index
@@ -89,7 +89,7 @@ class MapgenV5 : public Mapgen {
content_t c_stair_cobble;
content_t c_stair_sandstone;

MapgenV5(int mapgenid, MapgenParams *params, EmergeManager *emerge_);
MapgenV5(int mapgenid, MapgenParams *params, EmergeManager *emerge);
~MapgenV5();

virtual void makeChunk(BlockMakeData *data);

0 comments on commit 2f134ce

Please sign in to comment.