diff options
author | kwolekr <kwolekr@minetest.net> | 2013-12-08 22:13:05 -0500 |
---|---|---|
committer | kwolekr <kwolekr@minetest.net> | 2013-12-08 22:13:05 -0500 |
commit | 50b0e9f7a4916044b1938d461c9c4029b30569da (patch) | |
tree | ab91f5414e93d368a3023dbdde7cec985e0bc659 | |
parent | 206565d9650eeffc86b4223a75203a29bc94cce7 (diff) | |
download | minetest-50b0e9f7a4916044b1938d461c9c4029b30569da.tar.gz minetest-50b0e9f7a4916044b1938d461c9c4029b30569da.tar.bz2 minetest-50b0e9f7a4916044b1938d461c9c4029b30569da.zip |
Mapgen Indev: Fix segfault in cave generation due to uninitialized variable
-rw-r--r-- | src/mapgen_indev.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mapgen_indev.cpp b/src/mapgen_indev.cpp index 7203fc85d..a22e2522f 100644 --- a/src/mapgen_indev.cpp +++ b/src/mapgen_indev.cpp @@ -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; |