- delete voxel models when shutting down

This commit is contained in:
Christoph Oelckers 2021-12-27 15:47:42 +01:00
parent dc7082f264
commit 8710e76a2d

View file

@ -49,7 +49,11 @@ void voxClear()
{
for (auto& vox : voxmodels)
{
if (vox) delete vox;
if (vox)
{
delete vox->model;
delete vox;
}
vox = nullptr;
}
}