mirror of
https://github.com/ZDoom/Raze.git
synced 2025-02-16 16:51:08 +00:00
- delete voxel models when shutting down
This commit is contained in:
parent
dc7082f264
commit
8710e76a2d
1 changed files with 5 additions and 1 deletions
|
@ -49,7 +49,11 @@ void voxClear()
|
|||
{
|
||||
for (auto& vox : voxmodels)
|
||||
{
|
||||
if (vox) delete vox;
|
||||
if (vox)
|
||||
{
|
||||
delete vox->model;
|
||||
delete vox;
|
||||
}
|
||||
vox = nullptr;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue