From: RĂ©mi Verschelde Date: Wed, 22 Apr 2015 08:31:08 +0000 (+0200) Subject: Fix crash due to wrong iterator type X-Git-Url: https://git.jsancho.org/?a=commitdiff_plain;h=d86482929b8f4354d16312a0e42c6a28f73aeb83;p=lugaru.git Fix crash due to wrong iterator type --- diff --git a/Source/GameTick.cpp b/Source/GameTick.cpp index b216545..48b34b9 100644 --- a/Source/GameTick.cpp +++ b/Source/GameTick.cpp @@ -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, ':');