summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorPedro J. Estébanez <pedrojrulez@gmail.com>2021-10-13 17:25:31 +0200
committerPedro J. Estébanez <pedrojrulez@gmail.com>2021-10-13 17:25:31 +0200
commitf80e4e4f4ca199876965af9a2fbb19e81d2c50d9 (patch)
treeb7a3dd0b323fadd7b75cba116b3724aa5a5382e3 /core
parent6f1d2133bb2b77048bf13a8180f57bff1a747226 (diff)
Fix HashMap element copy leaving hash as zero
Diffstat (limited to 'core')
-rw-r--r--core/templates/hash_map.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/templates/hash_map.h b/core/templates/hash_map.h
index b5bb0d7396..1634219c23 100644
--- a/core/templates/hash_map.h
+++ b/core/templates/hash_map.h
@@ -96,6 +96,7 @@ public:
Element(const TKey &p_key) :
pair(p_key) {}
Element(const Element &p_other) :
+ hash(p_other.hash),
pair(p_other.pair.key, p_other.pair.data) {}
};