1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-26 09:35:28 +00:00

Destructor fix

This commit is contained in:
scrawl 2015-11-02 00:57:59 +01:00
parent 913bbe347b
commit 3f988327c7

View File

@ -613,6 +613,17 @@ void Water::processChangedSettings(const Settings::CategorySettingVector& settin
Water::~Water()
{
mParent->removeChild(mWaterNode);
if (mReflection)
{
mParent->removeChild(mReflection);
mReflection = NULL;
}
if (mRefraction)
{
mParent->removeChild(mRefraction);
mRefraction = NULL;
}
}
void Water::setEnabled(bool enabled)