From 019173b7f5a1944a1e31ce36c1d23834a1613da6 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 12 May 2016 01:20:08 +0300 Subject: Fix loading error sprite for missing emotes. --- src/resources/db/emotedb.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/resources/db/emotedb.cpp') diff --git a/src/resources/db/emotedb.cpp b/src/resources/db/emotedb.cpp index 2d8804630..40d59d780 100644 --- a/src/resources/db/emotedb.cpp +++ b/src/resources/db/emotedb.cpp @@ -49,8 +49,9 @@ void EmoteDB::load() unload(); EmoteSprite *const unknownSprite = new EmoteSprite; - unknownSprite->sprite = AnimatedSprite::load( - paths.getStringValue("spriteErrorFile")); + unknownSprite->sprite = AnimatedSprite::load(paths.getStringValue( + "sprites").append(paths.getStringValue( + "spriteErrorFile"))); unknownSprite->name = "unknown"; unknownSprite->id = 0; mUnknown.sprites.push_back(unknownSprite); -- cgit v1.2.3-70-g09d2