Fix "in" operator, make it use evaluate() instead of operator==
This commit is contained in:
parent
3b68f0d051
commit
6a34ab201a
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue