summaryrefslogtreecommitdiff
path: root/src/effectmanager.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-08-20 16:13:56 +0300
committerAndrei Karas <akaras@inbox.ru>2015-08-20 16:13:56 +0300
commitb2c6603542af1d5c34a3e252d9454ddf0b21fcc5 (patch)
treeb9863b6532d6d92bd8c8ab29866e87b7e6fe4c24 /src/effectmanager.cpp
parent32b055d5738256c4a3e653a3e7b41d86739a3b74 (diff)
downloadplus-b2c6603542af1d5c34a3e252d9454ddf0b21fcc5.tar.gz
plus-b2c6603542af1d5c34a3e252d9454ddf0b21fcc5.tar.bz2
plus-b2c6603542af1d5c34a3e252d9454ddf0b21fcc5.tar.xz
plus-b2c6603542af1d5c34a3e252d9454ddf0b21fcc5.zip
Add missing checks or attribute to other files.
Diffstat (limited to 'src/effectmanager.cpp')
-rw-r--r--src/effectmanager.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/effectmanager.cpp b/src/effectmanager.cpp
index 38e29c739..e88dc0a74 100644
--- a/src/effectmanager.cpp
+++ b/src/effectmanager.cpp
@@ -182,7 +182,7 @@ bool EffectManager::trigger(const int id, const int x, const int y,
if (effect.id == id)
{
rValue = true;
- if (!effect.gfx.empty() && particleEngine)
+ if (!effect.gfx.empty())
particleEngine->addEffect(effect.gfx, x, y, rotation);
if (!effect.sfx.empty())
soundManager.playSfx(effect.sfx);