diff options
author | Juan Linietsky <reduzio@gmail.com> | 2015-11-18 18:55:01 -0300 |
---|---|---|
committer | Juan Linietsky <reduzio@gmail.com> | 2015-11-18 18:55:01 -0300 |
commit | 5dcfdb343572086a1f495497ba896436326792d9 (patch) | |
tree | f959ad2d100c52402ff1ac7490f898973799a898 | |
parent | e84fa0414190414e6f3539a6d98ea91bd5e9d3ca (diff) | |
parent | d5fbd1d262fe8d38d550e23169af748e84667881 (diff) |
Merge pull request #2749 from TheHX/fix_string_content_test
Fix String content test
-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 39a802e171..eabd647837 100644 --- a/core/variant_op.cpp +++ b/core/variant_op.cpp @@ -2587,7 +2587,7 @@ bool Variant::in(const Variant& p_index, bool *r_valid) const { String idx=p_index; const String *str=reinterpret_cast<const String*>(_data._mem); - return str->find("idx")!=-1; + return str->find(idx)!=-1; } } break; |