diff --git a/src/sprite.cpp b/src/sprite.cpp index 1581333..a60e239 100644 --- a/src/sprite.cpp +++ b/src/sprite.cpp @@ -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) +