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:
parent
913bbe347b
commit
3f988327c7
1 changed files with 11 additions and 0 deletions
|
@ -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…
Reference in a new issue