1
0
mirror of https://github.com/moparisthebest/minetest synced 2024-12-22 15:48:48 -05:00

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

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;