Fix null deref

This commit is contained in:
Jonas Kulla 2013-10-01 02:29:02 +02:00
parent 73d5cb5bad
commit b5afeadb5b

View file

@ -82,6 +82,9 @@ struct SpritePrivate
void recomputeBushDepth()
{
if (!bitmap)
return;
/* Calculate effective (normalized) bush depth */
float texBushDepth = (bushDepth / trans.getScale().y) -
(srcRect->y + srcRect->height) +