summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/compoundsprite.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compoundsprite.cpp b/src/compoundsprite.cpp
index 45c047060..195a7ce2e 100644
--- a/src/compoundsprite.cpp
+++ b/src/compoundsprite.cpp
@@ -172,7 +172,7 @@ int CompoundSprite::getHeight() const
{
FOR_EACH (SpriteConstIterator, it, mSprites)
{
- const Sprite *const base = nullptr;
+ const Sprite *const base = *it;
if (base)
return base->getHeight();
}