diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-03-11 18:09:33 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-03-11 18:09:33 +0300 |
commit | 17dcb835103ac05012c5a7eafa8c7702cef53390 (patch) | |
tree | 422c28adfba13f2161fcfc36943a3903e531490b /src/resources/mapreader.cpp | |
parent | 84d53b7bb98bb44696ed1bc2c3f132e51394ac00 (diff) | |
download | mv-17dcb835103ac05012c5a7eafa8c7702cef53390.tar.gz mv-17dcb835103ac05012c5a7eafa8c7702cef53390.tar.bz2 mv-17dcb835103ac05012c5a7eafa8c7702cef53390.tar.xz mv-17dcb835103ac05012c5a7eafa8c7702cef53390.zip |
Add some fixes after automatic checks.
Diffstat (limited to 'src/resources/mapreader.cpp')
-rw-r--r-- | src/resources/mapreader.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/resources/mapreader.cpp b/src/resources/mapreader.cpp index 98de2cd49..6a149c6fd 100644 --- a/src/resources/mapreader.cpp +++ b/src/resources/mapreader.cpp @@ -635,13 +635,11 @@ void MapReader::readLayer(const XmlNodePtr node, Map *const map) return; std::string csv(data); - - size_t pos = 0; size_t oldPos = 0; while (oldPos != csv.npos) { - pos = csv.find_first_of(",", oldPos); + const size_t pos = csv.find_first_of(",", oldPos); if (pos == csv.npos) return; |