mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/4jcraft.git
synced 2026-07-17 18:38:13 +00:00
new batch of delete operator missmatch
This commit is contained in:
@@ -218,7 +218,7 @@ void BiomeSource::getBiomeBlock(BiomeArray& biomes, int x, int z, int w, int h,
|
||||
{
|
||||
BiomeArray tmp = cache->getBiomeBlockAt(x, z);
|
||||
System::arraycopy(tmp, 0, &biomes, 0, w * h);
|
||||
delete tmp.data; // MGH - added, the caching creates this array from the indices now.
|
||||
delete[] tmp.data; // MGH - added, the caching creates this array from the indices now. //4jcraft made it array delete
|
||||
//return biomes;
|
||||
}
|
||||
|
||||
@@ -635,4 +635,4 @@ bool BiomeSource::getIsMatch(float *frac)
|
||||
|
||||
// Consider as suitable if we've got all the critical ones, and in total 9 or more - currently there's 8 critical so this just forces at least 1 more others
|
||||
return ( typeCount >= 9 );
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user