summaryrefslogtreecommitdiff
path: root/src/simpleanimation.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/simpleanimation.cpp')
-rw-r--r--src/simpleanimation.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/simpleanimation.cpp b/src/simpleanimation.cpp
index 4736b2e57..31f0c7af0 100644
--- a/src/simpleanimation.cpp
+++ b/src/simpleanimation.cpp
@@ -55,13 +55,13 @@ SimpleAnimation::SimpleAnimation(xmlNodePtr animationNode,
if (mAnimation)
mCurrentFrame = mAnimation->getFrame(0);
else
- mCurrentFrame = 0;
+ mCurrentFrame = nullptr;
}
SimpleAnimation::~SimpleAnimation()
{
delete mAnimation;
- mAnimation = 0;
+ mAnimation = nullptr;
}
bool SimpleAnimation::draw(Graphics *graphics, int posX, int posY) const
@@ -133,7 +133,7 @@ Image *SimpleAnimation::getCurrentImage() const
if (mCurrentFrame)
return mCurrentFrame->image;
else
- return NULL;
+ return nullptr;
}
void SimpleAnimation::initializeAnimation(xmlNodePtr animationNode,