summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-03-20 00:38:39 +0300
committerAndrei Karas <akaras@inbox.ru>2013-03-20 00:38:39 +0300
commitcedc0666fb1841220d4fc24c8d08cadaf59c230c (patch)
treeb0ea237c8b02123b35370dca3b4fc1996fd20f02 /src
parent66ac465991763d0a4611fd6004453b35ef68d143 (diff)
downloadplus-cedc0666fb1841220d4fc24c8d08cadaf59c230c.tar.gz
plus-cedc0666fb1841220d4fc24c8d08cadaf59c230c.tar.bz2
plus-cedc0666fb1841220d4fc24c8d08cadaf59c230c.tar.xz
plus-cedc0666fb1841220d4fc24c8d08cadaf59c230c.zip
fix compound objects height.
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();
}