summaryrefslogtreecommitdiff
path: root/src/animatedsprite.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/animatedsprite.cpp')
-rw-r--r--src/animatedsprite.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/animatedsprite.cpp b/src/animatedsprite.cpp
index 61f14550..6a5800aa 100644
--- a/src/animatedsprite.cpp
+++ b/src/animatedsprite.cpp
@@ -69,7 +69,7 @@ bool AnimatedSprite::reset()
return ret;
}
-bool AnimatedSprite::play(std::string spriteAction)
+bool AnimatedSprite::play(const std::string &spriteAction)
{
Action *action = mSprite->getAction(spriteAction);
if (!action)
@@ -216,7 +216,7 @@ int AnimatedSprite::getOffsetY() const
return mFrame ? mFrame->offsetY : 0;
}
-const Image* AnimatedSprite::getImage() const
+const Image *AnimatedSprite::getImage() const
{
return mFrame ? mFrame->image : nullptr;
}