mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Mapgen Indev: Fix segfault in cave generation due to uninitialized variable
This commit is contained in:
parent
206565d965
commit
50b0e9f7a4
1 changed files with 2 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue