diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-09-11 20:03:02 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-09-11 20:03:02 +0300 |
commit | 91fa2122a536770924bb2819bec4b79e76393d08 (patch) | |
tree | 93c0e191249b2158cf92a564630a4b16e9ccdcaa /src/actorspritemanager.cpp | |
parent | 1a524dc9468fe532bc060a73ef736a68687aadca (diff) | |
download | ManaVerse-91fa2122a536770924bb2819bec4b79e76393d08.tar.gz ManaVerse-91fa2122a536770924bb2819bec4b79e76393d08.tar.bz2 ManaVerse-91fa2122a536770924bb2819bec4b79e76393d08.tar.xz ManaVerse-91fa2122a536770924bb2819bec4b79e76393d08.zip |
Fix code style and small perfomance issues.
Diffstat (limited to 'src/actorspritemanager.cpp')
-rw-r--r-- | src/actorspritemanager.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/actorspritemanager.cpp b/src/actorspritemanager.cpp index 73d522527..82ee868cc 100644 --- a/src/actorspritemanager.cpp +++ b/src/actorspritemanager.cpp @@ -1442,10 +1442,9 @@ void ActorSpriteManager::parseLevels(std::string levels) const { levels += ", "; size_t f = 0; - size_t pos = 0; const std::string brkEnd = "), "; + size_t pos = levels.find(brkEnd, f); - pos = levels.find(brkEnd, f); while (pos != std::string::npos) { std::string part = levels.substr(f, pos - f); |