summaryrefslogtreecommitdiff
path: root/src/actorsprite.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/actorsprite.cpp')
-rw-r--r--src/actorsprite.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/actorsprite.cpp b/src/actorsprite.cpp
index ab220d45..1db68d31 100644
--- a/src/actorsprite.cpp
+++ b/src/actorsprite.cpp
@@ -204,9 +204,7 @@ static EffectDescription *getEffectDescription(int effectId)
EffectDescription *effectDescription =
getEffectDescription(node, &id);
- if (default_effect)
- delete default_effect;
-
+ delete default_effect;
default_effect = effectDescription;
}
}