From b2c6603542af1d5c34a3e252d9454ddf0b21fcc5 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 20 Aug 2015 16:13:56 +0300 Subject: Add missing checks or attribute to other files. --- src/effectmanager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/effectmanager.cpp') 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); -- cgit v1.2.3-70-g09d2