summaryrefslogtreecommitdiff
path: root/src/resources/mapreader.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/resources/mapreader.cpp')
-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;