summaryrefslogtreecommitdiff
path: root/src/statuseffect.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-02-24 22:59:54 +0300
committerAndrei Karas <akaras@inbox.ru>2013-02-24 22:59:54 +0300
commit6ce49efadfadd8eacb048df274979736bb04daf0 (patch)
tree60d4c2c2a803db003f6fa28e932468e925112580 /src/statuseffect.cpp
parent466829aef10af6b95d0f443226e8549f4399b567 (diff)
downloadplus-6ce49efadfadd8eacb048df274979736bb04daf0.tar.gz
plus-6ce49efadfadd8eacb048df274979736bb04daf0.tar.bz2
plus-6ce49efadfadd8eacb048df274979736bb04daf0.tar.xz
plus-6ce49efadfadd8eacb048df274979736bb04daf0.zip
Improve string usage in some files.
Diffstat (limited to 'src/statuseffect.cpp')
-rw-r--r--src/statuseffect.cpp10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/statuseffect.cpp b/src/statuseffect.cpp
index e0a4e51a0..e5184bc05 100644
--- a/src/statuseffect.cpp
+++ b/src/statuseffect.cpp
@@ -76,14 +76,8 @@ AnimatedSprite *StatusEffect::getIcon() const
}
else
{
- AnimatedSprite *const sprite = AnimatedSprite::load(
- paths.getStringValue("sprites") + mIcon);
- if (false && sprite)
- {
- sprite->play(SpriteAction::DEFAULT);
- sprite->reset();
- }
- return sprite;
+ return AnimatedSprite::load(paths.getStringValue(
+ "sprites").append(mIcon));
}
}