Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Mapgen Indev: Fix segfault in cave generation due to uninitialized va…
…riable
  • Loading branch information
kwolekr committed Dec 9, 2013
1 parent 206565d commit 50b0e9f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/mapgen_indev.cpp
Expand Up @@ -274,7 +274,9 @@ void MapgenIndev::generateCaves(int max_stone_y) {

CaveIndev::CaveIndev(MapgenIndev *mg, PseudoRandom *ps, PseudoRandom *ps2,
v3s16 node_min, bool is_large_cave) {
this->mg = mg;
this->vm = mg->vm;
this->ndef = mg->ndef;
this->water_level = mg->water_level;
this->large_cave = is_large_cave;
this->ps = ps;
Expand Down

0 comments on commit 50b0e9f

Please sign in to comment.