From: Maxim Mamontov <faust.madf@gmail.com>
Date: Thu, 29 May 2014 14:36:26 +0000 (+0300)
Subject: Fixed Split.
X-Git-Url: https://git.stg.codes/stg.git/commitdiff_plain/669bf62b01b121a3c9fc5092cd9d2ab3392fd92c

Fixed Split.
---

diff --git a/stglibs/common.lib/include/stg/common.h b/stglibs/common.lib/include/stg/common.h
index 605b9951..eeb68b51 100644
--- a/stglibs/common.lib/include/stg/common.h
+++ b/stglibs/common.lib/include/stg/common.h
@@ -112,7 +112,7 @@ while (pos != std::string::npos)
     {
     res.push_back(conv(value.substr(startPos, pos - startPos)));
     startPos = pos + 1;
-    pos = value.find_first_of(delim, pos);
+    pos = value.find_first_of(delim, pos + 1);
     }
 res.push_back(conv(value.substr(startPos, pos - startPos)));
 return res;