summaryrefslogtreecommitdiff
path: root/src/resources
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-03-11 18:09:33 +0300
committerAndrei Karas <akaras@inbox.ru>2013-03-11 18:09:33 +0300
commit17dcb835103ac05012c5a7eafa8c7702cef53390 (patch)
tree422c28adfba13f2161fcfc36943a3903e531490b /src/resources
parent84d53b7bb98bb44696ed1bc2c3f132e51394ac00 (diff)
downloadmanaverse-17dcb835103ac05012c5a7eafa8c7702cef53390.tar.gz
manaverse-17dcb835103ac05012c5a7eafa8c7702cef53390.tar.bz2
manaverse-17dcb835103ac05012c5a7eafa8c7702cef53390.tar.xz
manaverse-17dcb835103ac05012c5a7eafa8c7702cef53390.zip
Add some fixes after automatic checks.
Diffstat (limited to 'src/resources')
-rw-r--r--src/resources/mapreader.cpp4
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;