diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/imageparticle.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/imageparticle.cpp b/src/imageparticle.cpp index 865c3046..1cac2473 100644 --- a/src/imageparticle.cpp +++ b/src/imageparticle.cpp @@ -41,7 +41,7 @@ ImageParticle::~ImageParticle() void ImageParticle::draw(Graphics *graphics, int offsetX, int offsetY) const { - if (!mAlive) + if (!mAlive || !mImage) return; int screenX = (int) mPos.x + offsetX - mImage->getWidth() / 2; |