fix potential memory leak

This commit is contained in:
A-lex-Ra
2024-01-05 13:19:47 +06:00
parent d671188680
commit f5856b88b0
+1
View File
@@ -45,6 +45,7 @@ Chunks::~Chunks(){
chunks[i] = nullptr;
}
delete[] chunks;
delete[] chunksSecond;
}
voxel* Chunks::get(int x, int y, int z){