From 7abf9198788c8ec476c6099faf7ebd25be372655 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 1 Nov 2015 16:15:31 +0300 Subject: Show enabled status effects in player popups. --- src/statuseffect.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/statuseffect.cpp') diff --git a/src/statuseffect.cpp b/src/statuseffect.cpp index 365887a90..eed1a307b 100644 --- a/src/statuseffect.cpp +++ b/src/statuseffect.cpp @@ -45,6 +45,7 @@ StatusEffect::StatusEffect() : mParticleEffect(), mIcon(), mAction(), + mName(), mPersistentParticleEffect(false), mIsPoison(false), mIsCart(false), @@ -199,6 +200,7 @@ void StatusEffect::loadXmlFile(const std::string &fileName) if (!endEffect) endEffect = new StatusEffect; + startEffect->mName = name; startEffect->mIsPoison = (name == paths.getStringValue("poisonEffectName")); startEffect->mIsCart = @@ -219,6 +221,7 @@ void StatusEffect::loadXmlFile(const std::string &fileName) startEffect->mPersistentParticleEffect = (XML::getProperty( node, "persistent-particle-effect", "no")) != "no"; + endEffect->mName = startEffect->mName; endEffect->mIsPoison = startEffect->mIsPoison; endEffect->mIsCart = startEffect->mIsCart; endEffect->mIsRiding = startEffect->mIsRiding; -- cgit v1.2.3-60-g2f50