mirror of
https://github.com/4jcraft/4jcraft.git
synced 2026-05-14 05:07:14 +00:00
Merge pull request #270 from nikita-edel/meow/asan
fix: alloc dealloc missmatch
This commit is contained in:
commit
c76f0e4e52
|
|
@ -240,7 +240,7 @@ void McRegionChunkStorage::saveEntities(Level* level, LevelChunk* levelChunk) {
|
|||
uint64_t index = ((uint64_t)(uint32_t)(levelChunk->x) << 32) |
|
||||
(((uint64_t)(uint32_t)(levelChunk->z)));
|
||||
|
||||
delete m_entityData[index].data;
|
||||
delete[] m_entityData[index].data;
|
||||
|
||||
CompoundTag* newTag = new CompoundTag();
|
||||
bool savedEntities =
|
||||
|
|
|
|||
|
|
@ -433,7 +433,7 @@ __int64 BiomeSource::findSeed(LevelType* generator)
|
|||
|
||||
// Clean up
|
||||
delete pr;
|
||||
delete indices.data;
|
||||
delete[] indices.data;
|
||||
|
||||
#ifdef DEBUG_SEEDS
|
||||
app.DebugPrintf("%d: %d tries taken, seed used is %lld\n", k,
|
||||
|
|
|
|||
Loading…
Reference in a new issue