diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/actorsprite.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/actorsprite.cpp b/src/actorsprite.cpp index aa288e377..90536e364 100644 --- a/src/actorsprite.cpp +++ b/src/actorsprite.cpp @@ -242,6 +242,9 @@ void ActorSprite::setStatusEffectBlock(int offset, Uint16 newEffects) void ActorSprite::internalTriggerEffect(int effectId, bool sfx, bool gfx) { + if (!particleEngine) + return; + if (player_node) { logger->log("Special effect #%d on %s", effectId, @@ -315,6 +318,8 @@ void ActorSprite::setupSpriteDisplay(const SpriteDisplay &display, for (it = display.sprites.begin(), it_end = display.sprites.end(); it != it_end; ++it) { + if (!*it) + continue; std::string file = "graphics/sprites/" + combineDye2((*it)->sprite, color); |