diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-08-30 22:53:47 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-08-31 12:50:04 +0300 |
commit | 85c5fc06d49e8309d273873d31448688bd494d49 (patch) | |
tree | 80d83e16ef273c147b0d1915edca44baf6899933 /src/actorsprite.cpp | |
parent | 60d90692e487948b77edcac63acbef34254cea5b (diff) | |
download | manaverse-85c5fc06d49e8309d273873d31448688bd494d49.tar.gz manaverse-85c5fc06d49e8309d273873d31448688bd494d49.tar.bz2 manaverse-85c5fc06d49e8309d273873d31448688bd494d49.tar.xz manaverse-85c5fc06d49e8309d273873d31448688bd494d49.zip |
fix code style and some minor issues.
Diffstat (limited to 'src/actorsprite.cpp')
-rw-r--r-- | src/actorsprite.cpp | 5 |
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))); } } |