summaryrefslogtreecommitdiff
path: root/src/animationdelayload.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/animationdelayload.cpp')
-rw-r--r--src/animationdelayload.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/animationdelayload.cpp b/src/animationdelayload.cpp
index 0ce50ec2c..79334d69b 100644
--- a/src/animationdelayload.cpp
+++ b/src/animationdelayload.cpp
@@ -27,7 +27,8 @@
#include "debug.h"
AnimationDelayLoad::AnimationDelayLoad(const std::string &fileName,
- int variant, AnimatedSprite *sprite) :
+ const int variant,
+ AnimatedSprite *const sprite) :
mFileName(fileName),
mVariant(variant),
mSprite(sprite),
@@ -53,8 +54,8 @@ void AnimationDelayLoad::load()
{
if (mSprite)
{
- ResourceManager *resman = ResourceManager::getInstance();
- SpriteDef *s = resman->getSprite(mFileName, mVariant);
+ ResourceManager *const resman = ResourceManager::getInstance();
+ SpriteDef *const s = resman->getSprite(mFileName, mVariant);
if (!s)
return;
mSprite->setSprite(s);