summaryrefslogtreecommitdiff
path: root/src/being
diff options
context:
space:
mode:
Diffstat (limited to 'src/being')
-rw-r--r--src/being/actorsprite.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/being/actorsprite.cpp b/src/being/actorsprite.cpp
index 7007d52aa..d5527f161 100644
--- a/src/being/actorsprite.cpp
+++ b/src/being/actorsprite.cpp
@@ -384,13 +384,15 @@ void ActorSprite::handleStatusEffect(const StatusEffect *const effect,
if (effectId >= 0)
{
+ Particle *particle = nullptr;
if (start == IsStart_true)
{
- Particle *const particle = effect->getParticle();
- mStatusParticleEffects.setLocally(effectId, particle);
+ particle = effect->getStartParticle();
}
// +++ here also need enable permanent status effects,
// need new field in StatusEffect
+ if (particle)
+ mStatusParticleEffects.setLocally(effectId, particle);
}
}