diff options
Diffstat (limited to 'src/actorsprite.cpp')
-rw-r--r-- | src/actorsprite.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/actorsprite.cpp b/src/actorsprite.cpp index 96afb94c7..ac2d6bf7b 100644 --- a/src/actorsprite.cpp +++ b/src/actorsprite.cpp @@ -333,8 +333,8 @@ void ActorSprite::setupSpriteDisplay(const SpriteDisplay &display, { if (!*it) continue; - const std::string file = paths.getStringValue("sprites") - + combineDye2((*it)->sprite, color); + const std::string file = paths.getStringValue("sprites").append( + combineDye2((*it)->sprite, color)); const int variant = (*it)->variant; addSprite(AnimatedSprite::delayedLoad(file, variant)); @@ -346,8 +346,8 @@ void ActorSprite::setupSpriteDisplay(const SpriteDisplay &display, if (display.image.empty()) { addSprite(AnimatedSprite::delayedLoad( - paths.getStringValue("sprites") - + paths.getStringValue("spriteErrorFile"))); + paths.getStringValue("sprites").append( + paths.getStringValue("spriteErrorFile")))); } else { @@ -357,12 +357,12 @@ void ActorSprite::setupSpriteDisplay(const SpriteDisplay &display, { case 0: default: - imagePath = paths.getStringValue("itemIcons") - + display.image; + imagePath = paths.getStringValue("itemIcons").append( + display.image); break; case 1: - imagePath = paths.getStringValue("itemIcons") - + display.floor; + imagePath = paths.getStringValue("itemIcons").append( + display.floor); break; } imagePath = combineDye2(imagePath, color); |