Kaynağa Gözat

Fix the premature break without copying the remaining string part.

mingodad 12 yıl önce
ebeveyn
işleme
6c98c4dbe3
1 değiştirilmiş dosya ile 1 ekleme ve 0 silme
  1. 1 0
      SquiLu/squirrel/sqbaselib.cpp

+ 1 - 0
SquiLu/squirrel/sqbaselib.cpp

@@ -1415,6 +1415,7 @@ static SQRESULT string_replace(HSQUIRRELVM v) {
             init = init + (s2-(src+init)) + p_size;
             n++;
             if(count && (n >= count)) {
+                b.Write(src+init, src_size-init);
                 break;
             }
         } else {