1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-02-19 15:39:42 +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)