summaryrefslogtreecommitdiff
path: root/src/actorsprite.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-08-30 22:53:47 +0300
committerAndrei Karas <akaras@inbox.ru>2013-08-31 12:50:04 +0300
commit85c5fc06d49e8309d273873d31448688bd494d49 (patch)
tree80d83e16ef273c147b0d1915edca44baf6899933 /src/actorsprite.cpp
parent60d90692e487948b77edcac63acbef34254cea5b (diff)
downloadplus-85c5fc06d49e8309d273873d31448688bd494d49.tar.gz
plus-85c5fc06d49e8309d273873d31448688bd494d49.tar.bz2
plus-85c5fc06d49e8309d273873d31448688bd494d49.tar.xz
plus-85c5fc06d49e8309d273873d31448688bd494d49.zip
fix code style and some minor issues.
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 83f104867..0b624741a 100644
--- a/src/actorsprite.cpp
+++ b/src/actorsprite.cpp
@@ -367,14 +367,15 @@ void ActorSprite::initTargetCursor()
{
static const std::string targetCursorFile = "%s/target-cursor-%s-%s.xml";
- const char *path = branding.getStringValue("guiPath").c_str();
+ const std::string path = branding.getStringValue("guiPath");
+
// 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, cursorType(type),
+ targetCursorFile.c_str(), path.c_str(), cursorType(type),
cursorSize(size)));
}
}