Merge pull request #1485 from Azaezel/alpha41/volfogCleanups

volfog destructor safties
This commit is contained in:
Brian Roberts 2025-05-25 23:20:07 -05:00 committed by GitHub
commit deb17b16fa
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -303,7 +303,8 @@ void VolumetricFog::onRemove()
GuiCanvas::getCanvasSizeChangeSignal().remove(this, &VolumetricFog::handleCanvasResize);
}
removeFromScene();
VFRTM->DecFogObjects();
if (VFRTM)
VFRTM->DecFogObjects();
Parent::onRemove();
}
void VolumetricFog::handleCanvasResize(GuiCanvas* canvas)