Browse Source

Fix HashMap element copy leaving hash as zero

Pedro J. Estébanez 3 years ago
parent
commit
f80e4e4f4c
1 changed files with 1 additions and 0 deletions
  1. 1 0
      core/templates/hash_map.h

+ 1 - 0
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) {}
 	};