mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-26 09:35:28 +00:00
Destructor fix
This commit is contained in:
parent
913bbe347b
commit
3f988327c7
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user