summaryrefslogtreecommitdiff
path: root/src/being/actorsprite.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-09-25 13:48:24 +0300
committerAndrei Karas <akaras@inbox.ru>2013-09-25 13:48:24 +0300
commit6c05739c62484dae8d5ed9fb0dfdb6590aacfe88 (patch)
treedf4a3e32b8ad9e77d894280966a0066f4aef0a94 /src/being/actorsprite.cpp
parent9a970ba6bc80938b56f3ba731bf4614b40ba573d (diff)
downloadmv-6c05739c62484dae8d5ed9fb0dfdb6590aacfe88.tar.gz
mv-6c05739c62484dae8d5ed9fb0dfdb6590aacfe88.tar.bz2
mv-6c05739c62484dae8d5ed9fb0dfdb6590aacfe88.tar.xz
mv-6c05739c62484dae8d5ed9fb0dfdb6590aacfe88.zip
improve a bit strings declaration.
Diffstat (limited to 'src/being/actorsprite.cpp')
-rw-r--r--src/being/actorsprite.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/being/actorsprite.cpp b/src/being/actorsprite.cpp
index 3feaa4d8b..6d783e6f1 100644
--- a/src/being/actorsprite.cpp
+++ b/src/being/actorsprite.cpp
@@ -360,9 +360,8 @@ 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 = branding.getStringValue("guiPath");
+ static const std::string targetCursorFile("%s/target-cursor-%s-%s.xml");
+ const std::string path(branding.getStringValue("guiPath"));
// Load target cursors
for (int size = TC_SMALL; size < NUM_TC; size++)