summaryrefslogtreecommitdiff
path: root/src/actorsprite.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/actorsprite.cpp')
-rw-r--r--src/actorsprite.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/actorsprite.cpp b/src/actorsprite.cpp
index 7bd496d30..b78f6bb91 100644
--- a/src/actorsprite.cpp
+++ b/src/actorsprite.cpp
@@ -332,7 +332,7 @@ void ActorSprite::setupSpriteDisplay(const SpriteDisplay &display,
+ combineDye2((*it)->sprite, color);
int variant = (*it)->variant;
- addSprite(AnimatedSprite::load(file, variant));
+ addSprite(AnimatedSprite::delayedLoad(file, variant));
}
// Ensure that something is shown, if desired
@@ -340,7 +340,8 @@ void ActorSprite::setupSpriteDisplay(const SpriteDisplay &display,
{
if (display.image.empty())
{
- addSprite(AnimatedSprite::load(paths.getStringValue("sprites")
+ addSprite(AnimatedSprite::delayedLoad(
+ paths.getStringValue("sprites")
+ paths.getStringValue("spriteErrorFile")));
}
else