forked from Mirrorlandia_minetest/minetest
Mapgen Indev: Fix segfault in cave generation due to uninitialized variable
This commit is contained in:
parent
206565d965
commit
50b0e9f7a4
@ -274,7 +274,9 @@ void MapgenIndev::generateCaves(int max_stone_y) {
|
|||||||
|
|
||||||
CaveIndev::CaveIndev(MapgenIndev *mg, PseudoRandom *ps, PseudoRandom *ps2,
|
CaveIndev::CaveIndev(MapgenIndev *mg, PseudoRandom *ps, PseudoRandom *ps2,
|
||||||
v3s16 node_min, bool is_large_cave) {
|
v3s16 node_min, bool is_large_cave) {
|
||||||
|
this->mg = mg;
|
||||||
this->vm = mg->vm;
|
this->vm = mg->vm;
|
||||||
|
this->ndef = mg->ndef;
|
||||||
this->water_level = mg->water_level;
|
this->water_level = mg->water_level;
|
||||||
this->large_cave = is_large_cave;
|
this->large_cave = is_large_cave;
|
||||||
this->ps = ps;
|
this->ps = ps;
|
||||||
|
Loading…
Reference in New Issue
Block a user