summaryrefslogtreecommitdiff
path: root/src/statuseffect.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/statuseffect.cpp')
-rw-r--r--src/statuseffect.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/statuseffect.cpp b/src/statuseffect.cpp
index 8aeb66c6..6397f615 100644
--- a/src/statuseffect.cpp
+++ b/src/statuseffect.cpp
@@ -30,7 +30,8 @@
#define STATUS_EFFECTS_FILE "status-effects.xml"
-StatusEffect::StatusEffect()
+StatusEffect::StatusEffect() :
+ mPersistentParticleEffect(false)
{}
StatusEffect::~StatusEffect()
@@ -156,13 +157,12 @@ void StatusEffect::load()
startEffect->mParticleEffect = XML::getProperty(node, "start-particle", "");
startEffect->mIcon = XML::getProperty(node, "icon", "");
startEffect->mAction = XML::getProperty(node, "action", "");
+ startEffect->mPersistentParticleEffect = (XML::getProperty(node, "persistent-particle-effect", "no")) != "no";
endEffect->mMessage = XML::getProperty(node, "end-message", "");
endEffect->mSFXEffect = XML::getProperty(node, "end-audio", "");
endEffect->mParticleEffect = XML::getProperty(node, "end-particle", "");
- endEffect->mPersistentParticleEffect = (XML::getProperty(node, "persistent-particle-effect", "no")) != "no";
-
(*the_map)[1][index] = startEffect;
(*the_map)[0][index] = endEffect;
}