summaryrefslogtreecommitdiff
path: root/src/being/compoundsprite.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/being/compoundsprite.cpp')
-rw-r--r--src/being/compoundsprite.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/being/compoundsprite.cpp b/src/being/compoundsprite.cpp
index 297cb5da1..178e5858a 100644
--- a/src/being/compoundsprite.cpp
+++ b/src/being/compoundsprite.cpp
@@ -128,7 +128,7 @@ bool CompoundSprite::play(const std::string &action)
bool CompoundSprite::update(const int time)
{
bool ret = false;
- if (!mLastTime)
+ if (A_UNLIKELY(mLastTime == 0))
mStartTime = time;
mLastTime = time;
FOR_EACH (SpriteIterator, it, mSprites)