]> git.jsancho.org Git - lugaru.git/blobdiff - Source/GameTick.cpp
Fix crash due to wrong iterator type
[lugaru.git] / Source / GameTick.cpp
index b216545a8f4dcd732d770c75449f2a32458132f0..48b34b90c1d8c72ab84f9515ee11ad18936ddea2 100644 (file)
@@ -200,7 +200,7 @@ public:
         is >> mapname;
         is.ignore(256, ':');
         is >> description;
-        for (unsigned pos = description.find('_'); pos != string::npos; pos = description.find('_', pos)) {
+        for (size_t pos = description.find('_'); pos != string::npos; pos = description.find('_', pos)) {
             description.replace(pos, 1, 1, ' ');
         }
         is.ignore(256, ':');