diff options
author | Franklin Sobrinho <franklin_gs@hotmail.com> | 2015-12-11 10:15:05 -0300 |
---|---|---|
committer | Franklin Sobrinho <franklin_gs@hotmail.com> | 2015-12-11 10:29:55 -0300 |
commit | 6a34ab201ab17363ce0d64d56469ff7fdd506c8c (patch) | |
tree | 44c194fa09701d7ab483ac9b45b904f39093d9bd | |
parent | 3b68f0d051ac33a95e78025622c5f93219591da9 (diff) |
Fix "in" operator, make it use evaluate() instead of operator==
-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 1bcfa7d2ae..e33b79e63c 100644 --- a/core/variant_op.cpp +++ b/core/variant_op.cpp @@ -2635,7 +2635,7 @@ bool Variant::in(const Variant& p_index, bool *r_valid) const { if (l) { for(int i=0;i<l;i++) { - if ((*arr)[i]==p_index) + if (evaluate(OP_EQUAL,(*arr)[i],p_index)) return true; } |