From d86482929b8f4354d16312a0e42c6a28f73aeb83 Mon Sep 17 00:00:00 2001 From: =?utf8?q?R=C3=A9mi=20Verschelde?= Date: Wed, 22 Apr 2015 10:31:08 +0200 Subject: [PATCH] Fix crash due to wrong iterator type --- Source/GameTick.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, ':'); -- 2.39.5