Fix null deref

This commit is contained in:
Jonas Kulla 2013-10-01 02:29:02 +02:00
parent 73d5cb5bad
commit b5afeadb5b
1 changed files with 3 additions and 0 deletions

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) +