Mapgen Indev: Fix segfault in cave generation due to uninitialized variable

This commit is contained in:
kwolekr 2013-12-08 22:13:05 -05:00
parent 206565d965
commit 50b0e9f7a4
1 changed files with 2 additions and 0 deletions

View File

@ -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;