mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-13 00:25:19 +02:00
Initialize noise ptr on creation (fixes crash if OreVein deleted before use)
This commit is contained in:
@@ -263,6 +263,12 @@ void OreBlob::generate(MMVManip *vm, int mapseed, u32 blockseed,
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
OreVein::OreVein()
|
||||
{
|
||||
noise2 = NULL;
|
||||
}
|
||||
|
||||
|
||||
OreVein::~OreVein()
|
||||
{
|
||||
delete noise2;
|
||||
|
Reference in New Issue
Block a user