diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-08-26 00:23:36 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-08-26 19:27:36 +0300 |
commit | 4c6ceccbd41bfa0cd85900c1cbfa4b495b57b23f (patch) | |
tree | 7933f16579b9cd8754581207d2a50c5926e6f635 /src/resources/item/item.h | |
parent | d004880b9054d61fa0f092ba74553d8062e36b4b (diff) | |
download | manaverse-4c6ceccbd41bfa0cd85900c1cbfa4b495b57b23f.tar.gz manaverse-4c6ceccbd41bfa0cd85900c1cbfa4b495b57b23f.tar.bz2 manaverse-4c6ceccbd41bfa0cd85900c1cbfa4b495b57b23f.tar.xz manaverse-4c6ceccbd41bfa0cd85900c1cbfa4b495b57b23f.zip |
Add constexpr into item.
Diffstat (limited to 'src/resources/item/item.h')
-rw-r--r-- | src/resources/item/item.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/resources/item/item.h b/src/resources/item/item.h index 64e5fa063..0a3eeea9e 100644 --- a/src/resources/item/item.h +++ b/src/resources/item/item.h @@ -227,7 +227,13 @@ class Item notfinal void updateColor(); - static bool isItem(const int id); + static constexpr bool isItem(const int id) + { + return id != 0 && + id != CARD0_FORGE && + id != CARD0_CREATE && + id != CARD0_PET; + } int mId; /**< Item id. */ ItemColor mColor; |