diff options
| author | Rémi Verschelde | 2017-02-28 23:03:10 +0100 |
|---|---|---|
| committer | GitHub | 2017-02-28 23:03:10 +0100 |
| commit | a1cbe8e22bec516b138436d06282046466e89c79 (patch) | |
| tree | 24c8d7757a3f1d9e3543a8eff1363f0f7943cbc6 /core/variant.cpp | |
| parent | c5df3d4d8d3d6ee74b0dad5eeb45f318c8b205a9 (diff) | |
| parent | f50488a36188d5975bfa8554687a1acdd394d6a9 (diff) | |
| download | godot-a1cbe8e22bec516b138436d06282046466e89c79.tar.gz godot-a1cbe8e22bec516b138436d06282046466e89c79.tar.zst godot-a1cbe8e22bec516b138436d06282046466e89c79.zip | |
Merge pull request #7878 from RebelliousX/else
Bunch of missing `else` statements and general logic
Diffstat (limited to 'core/variant.cpp')
| -rw-r--r-- | core/variant.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/variant.cpp b/core/variant.cpp index 132d7a1c8..f45c3fd55 100644 --- a/core/variant.cpp +++ b/core/variant.cpp @@ -2953,7 +2953,7 @@ uint32_t Variant::hash() const { PoolVector<p_type>::Read rr = r.read(); \ \ for(int i = 0; i < l.size(); ++i) { \ - if(! p_compare_func((lr[0]), (rr[0]))) \ + if(! p_compare_func((lr[i]), (rr[i]))) \ return false; \ }\ \ @@ -3065,7 +3065,7 @@ bool Variant::hash_compare(const Variant& p_variant) const { return false; for(int i = 0; i < l.size(); ++i) { - if(! l[0].hash_compare(r[0])) + if(! l[i].hash_compare(r[i])) return false; } |
