From 6ce49efadfadd8eacb048df274979736bb04daf0 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 24 Feb 2013 22:59:54 +0300 Subject: Improve string usage in some files. --- src/statuseffect.cpp | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'src/statuseffect.cpp') 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)); } } -- cgit v1.2.3-60-g2f50