Fix "in" operator, make it use evaluate() instead of operator==

This commit is contained in:
Franklin Sobrinho 2015-12-11 10:15:05 -03:00
parent 3b68f0d051
commit 6a34ab201a

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