diff options
| author | Rémi Verschelde | 2015-12-11 15:15:01 +0100 |
|---|---|---|
| committer | Rémi Verschelde | 2015-12-11 15:15:01 +0100 |
| commit | 6221570f53db8b8dddb0ce481dcf405c87d4730e (patch) | |
| tree | 602b0e3a1d7590806a9cf9ef11b5e6c96019f08e /core/variant_op.cpp | |
| parent | 990690f9f53ec3f042d6df174fff05f2de25ca3d (diff) | |
| parent | 6a34ab201ab17363ce0d64d56469ff7fdd506c8c (diff) | |
| download | godot-6221570f53db8b8dddb0ce481dcf405c87d4730e.tar.gz godot-6221570f53db8b8dddb0ce481dcf405c87d4730e.tar.zst godot-6221570f53db8b8dddb0ce481dcf405c87d4730e.zip | |
Merge pull request #3039 from TheHX/pr-in-operator
Fix "in" operator, make it use evaluate() instead of operator==
Diffstat (limited to 'core/variant_op.cpp')
| -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 1bcfa7d2a..e33b79e63 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; } |
