1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-26 22:57:00 +02:00

Added hasValue method to identifiers

This commit is contained in:
Ivan Savenko 2024-01-20 16:40:51 +02:00
parent b8f3de38c1
commit 31b04780c9

View File

@ -52,6 +52,11 @@ public:
num = value;
}
constexpr bool hasValue() const
{
return num >= 0;
}
struct hash
{
size_t operator()(const IdentifierBase & id) const