summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIgnacio Etcheverry <neikeq@users.noreply.github.com>2016-08-27 15:29:06 +0200
committerGitHub <noreply@github.com>2016-08-27 15:29:06 +0200
commit3b676439789e5816a66e935f4d98accacc698943 (patch)
treee21ca0a9cd3850963a2f654d1445593faf6052de
parentd015d93b8f94f55b26f874781ac7fd0a53e68227 (diff)
parent810fbb70aec2cbe03721c1f6291a81bbae1adc39 (diff)
Merge pull request #6290 from caryoscelus/master
fix string iterator
-rw-r--r--core/variant_op.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/variant_op.cpp b/core/variant_op.cpp
index c537ed230f..fd64b58bd5 100644
--- a/core/variant_op.cpp
+++ b/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;