We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3b6342b commit f499afcCopy full SHA for f499afc
1 file changed
card.h
@@ -113,7 +113,9 @@ class card {
113
public:
114
struct effect_relation_hash {
115
std::size_t operator()(const std::pair<effect*, uint16_t>& v) const {
116
- return std::hash<uint16_t>()(v.second);
+ std::size_t h1 = std::hash<effect*>()(v.first);
117
+ std::size_t h2 = std::hash<uint16_t>()(v.second);
118
+ return h1 ^ (h2 << 1);
119
}
120
};
121
using effect_relation = std::unordered_set<std::pair<effect*, uint16_t>, effect_relation_hash>;
0 commit comments