summaryrefslogtreecommitdiff
path: root/src/imageparticle.cpp
diff options
context:
space:
mode:
authorJared Adams <jaxad0127@gmail.com>2009-05-09 21:28:57 -0600
committerJared Adams <jaxad0127@gmail.com>2009-05-09 21:28:57 -0600
commitb74add61aa176df9f3661d6a9c710abe05cc8f11 (patch)
treed4fb99f7de35b440fb725cf6d095aa99d84093b9 /src/imageparticle.cpp
parent59d351895a3a15b517c4493fab89a62137b12157 (diff)
downloadmana-b74add61aa176df9f3661d6a9c710abe05cc8f11.tar.gz
mana-b74add61aa176df9f3661d6a9c710abe05cc8f11.tar.bz2
mana-b74add61aa176df9f3661d6a9c710abe05cc8f11.tar.xz
mana-b74add61aa176df9f3661d6a9c710abe05cc8f11.zip
Make sure ImageParticle has a valid image
Diffstat (limited to 'src/imageparticle.cpp')
-rw-r--r--src/imageparticle.cpp2
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;