From a096b29db464950774e3f93c75b0f6b7e19e7aca Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 8 Oct 2013 20:35:49 +0300 Subject: fix target cursor loading in not default themes. --- src/being/actorsprite.cpp | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'src/being') diff --git a/src/being/actorsprite.cpp b/src/being/actorsprite.cpp index 66b2b9f17..162d5d661 100644 --- a/src/being/actorsprite.cpp +++ b/src/being/actorsprite.cpp @@ -361,17 +361,18 @@ static const char *cursorSize(const int size) void ActorSprite::initTargetCursor() { - static const std::string targetCursorFile("%s/target-cursor-%s-%s.xml"); - const std::string path(Theme::getThemePath()); + static const std::string targetCursorFile("target-cursor-%s-%s.xml"); // Load target cursors for (int size = TC_SMALL; size < NUM_TC; size++) { for (int type = TCT_NORMAL; type < NUM_TCT; type++) { - targetCursor[type][size] = AnimatedSprite::load(strprintf( - targetCursorFile.c_str(), path.c_str(), cursorType(type), - cursorSize(size))); + targetCursor[type][size] = AnimatedSprite::load( + Theme::resolveThemePath(strprintf( + targetCursorFile.c_str(), + cursorType(type), + cursorSize(size)))); } } } -- cgit v1.2.3-60-g2f50