mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-23 22:37:55 +02:00
suggested changes
This commit is contained in:
@@ -1054,6 +1054,14 @@ public:
|
||||
ID_LIKE_CLASS_COMMON(ArtifactID, EArtifactID)
|
||||
|
||||
EArtifactID num;
|
||||
|
||||
struct hash
|
||||
{
|
||||
size_t operator()(const ArtifactID & aid) const
|
||||
{
|
||||
return std::hash<int>()(aid.num);
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
ID_LIKE_OPERATORS(ArtifactID, ArtifactID::EArtifactID)
|
||||
|
||||
Reference in New Issue
Block a user