mirror of
https://github.com/godotengine/godot.git
synced 2024-11-28 23:22:38 +00:00
Fix "in" operator, make it use evaluate() instead of operator==
This commit is contained in:
parent
3b68f0d051
commit
6a34ab201a
@ -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 New Issue
Block a user