diff options
| author | caryoscelus | 2016-08-26 10:42:01 +0300 |
|---|---|---|
| committer | caryoscelus | 2016-08-26 10:42:01 +0300 |
| commit | 810fbb70aec2cbe03721c1f6291a81bbae1adc39 (patch) | |
| tree | 79b06a623e07357ac561cd3b7d461b71ae2d929c /core/variant_op.cpp | |
| parent | 9c6175db11ff72603ae58789a462b33ec1e910f8 (diff) | |
| download | godot-810fbb70aec2cbe03721c1f6291a81bbae1adc39.tar.gz godot-810fbb70aec2cbe03721c1f6291a81bbae1adc39.tar.zst godot-810fbb70aec2cbe03721c1f6291a81bbae1adc39.zip | |
Diffstat (limited to 'core/variant_op.cpp')
| -rw-r--r-- | core/variant_op.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/variant_op.cpp b/core/variant_op.cpp index c537ed230..fd64b58bd 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; |
