From b74add61aa176df9f3661d6a9c710abe05cc8f11 Mon Sep 17 00:00:00 2001 From: Jared Adams Date: Sat, 9 May 2009 21:28:57 -0600 Subject: Make sure ImageParticle has a valid image --- src/imageparticle.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/imageparticle.cpp') 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; -- cgit v1.2.3-70-g09d2