diff options
author | Jared Adams <jaxad0127@gmail.com> | 2009-05-09 21:28:57 -0600 |
---|---|---|
committer | Jared Adams <jaxad0127@gmail.com> | 2009-05-09 21:28:57 -0600 |
commit | b74add61aa176df9f3661d6a9c710abe05cc8f11 (patch) | |
tree | d4fb99f7de35b440fb725cf6d095aa99d84093b9 | |
parent | 59d351895a3a15b517c4493fab89a62137b12157 (diff) | |
download | mana-b74add61aa176df9f3661d6a9c710abe05cc8f11.tar.gz mana-b74add61aa176df9f3661d6a9c710abe05cc8f11.tar.bz2 mana-b74add61aa176df9f3661d6a9c710abe05cc8f11.tar.xz mana-b74add61aa176df9f3661d6a9c710abe05cc8f11.zip |
Make sure ImageParticle has a valid image
-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; |