Aleksandr Kuzmenko 5 лет назад
Родитель
Сommit
02d9483d76
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      std/lua/_std/haxe/iterators/StringIterator.hx

+ 1 - 1
std/lua/_std/haxe/iterators/StringIterator.hx

@@ -31,7 +31,7 @@ class StringIterator {
     public inline function new(s:String) {
     public inline function new(s:String) {
         this.codes = Utf8.codes(s);
         this.codes = Utf8.codes(s);
         this.str = s;
         this.str = s;
-        var cp = codes(str, 1);
+        var cp = codes(str, 0);
         this.codepoint = cp.codepoint;
         this.codepoint = cp.codepoint;
         this.position = cp.position;
         this.position = cp.position;
     }
     }