fix potential memory leak
This commit is contained in:
parent
d671188680
commit
f5856b88b0
@ -45,6 +45,7 @@ Chunks::~Chunks(){
|
||||
chunks[i] = nullptr;
|
||||
}
|
||||
delete[] chunks;
|
||||
delete[] chunksSecond;
|
||||
}
|
||||
|
||||
voxel* Chunks::get(int x, int y, int z){
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user