diff options
| author | Hein-Pieter van Braam | 2017-04-14 11:28:51 +0200 |
|---|---|---|
| committer | Hein-Pieter van Braam | 2017-04-14 11:31:18 +0200 |
| commit | 8ff6e538336135837630e313027826e9bd8d036e (patch) | |
| tree | 04349ee90351e83adec5874c55e69f0ba271b9a7 /core/variant.cpp | |
| parent | c4d3dd1a486479b243999bdc30bf26e5683a3b33 (diff) | |
| download | godot-8ff6e538336135837630e313027826e9bd8d036e.tar.gz godot-8ff6e538336135837630e313027826e9bd8d036e.tar.zst godot-8ff6e538336135837630e313027826e9bd8d036e.zip | |
Diffstat (limited to 'core/variant.cpp')
| -rw-r--r-- | core/variant.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/variant.cpp b/core/variant.cpp index 6e675d07d..67ce8af48 100644 --- a/core/variant.cpp +++ b/core/variant.cpp @@ -2839,7 +2839,7 @@ uint32_t Variant::hash() const { } #define hash_compare_scalar(p_lhs, p_rhs) \ - ((p_lhs) == (p_rhs)) || (Math::is_nan(p_lhs) == Math::is_nan(p_rhs)) + ((p_lhs) == (p_rhs)) || (Math::is_nan(p_lhs) && Math::is_nan(p_rhs)) #define hash_compare_vector2(p_lhs, p_rhs) \ (hash_compare_scalar((p_lhs).x, (p_rhs).x)) && \ |
