From cedc0666fb1841220d4fc24c8d08cadaf59c230c Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 20 Mar 2013 00:38:39 +0300 Subject: fix compound objects height. --- src/compoundsprite.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/compoundsprite.cpp') 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(); } -- cgit v1.2.3-60-g2f50