Fix null deref
This commit is contained in:
parent
73d5cb5bad
commit
b5afeadb5b
|
@ -82,6 +82,9 @@ struct SpritePrivate
|
||||||
|
|
||||||
void recomputeBushDepth()
|
void recomputeBushDepth()
|
||||||
{
|
{
|
||||||
|
if (!bitmap)
|
||||||
|
return;
|
||||||
|
|
||||||
/* Calculate effective (normalized) bush depth */
|
/* Calculate effective (normalized) bush depth */
|
||||||
float texBushDepth = (bushDepth / trans.getScale().y) -
|
float texBushDepth = (bushDepth / trans.getScale().y) -
|
||||||
(srcRect->y + srcRect->height) +
|
(srcRect->y + srcRect->height) +
|
||||||
|
|
Loading…
Reference in New Issue