Merge pull request #3039 from TheHX/pr-in-operator

Fix "in" operator, make it use evaluate() instead of operator==
This commit is contained in:
Rémi Verschelde 2015-12-11 15:15:01 +01:00
commit 6221570f53
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}