Procházet zdrojové kódy

Merge pull request #6290 from caryoscelus/master

fix string iterator
Ignacio Etcheverry před 9 roky
rodič
revize
3b67643978
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      core/variant_op.cpp

+ 1 - 1
core/variant_op.cpp

@@ -3046,7 +3046,7 @@ bool Variant::iter_next(Variant& r_iter,bool &valid) const {
 			const String *str=reinterpret_cast<const String*>(_data._mem);
 			int idx = r_iter;
 			idx++;
-			if (idx >= str->size())
+			if (idx >= str->length())
 				return false;
 			r_iter = idx;
 			return true;