diff options
author | Franklin Sobrinho <franklin_gs@hotmail.com> | 2015-11-06 18:52:15 -0300 |
---|---|---|
committer | Franklin Sobrinho <franklin_gs@hotmail.com> | 2015-11-06 18:52:15 -0300 |
commit | d5fbd1d262fe8d38d550e23169af748e84667881 (patch) | |
tree | 62e931a2077db94418cc9dc5287690a09193e1ae | |
parent | dde6396f221672d34d178c75f4080c1e87612aea (diff) |
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 1cdf6d7319..763b8c11b4 100644 --- a/core/variant_op.cpp +++ b/core/variant_op.cpp @@ -2573,7 +2573,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; |