diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-10-21 17:11:31 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-10-21 17:11:31 +0300 |
commit | 4ab7d38fe9033695e23042e97b55999b26f00fd7 (patch) | |
tree | 55d35e4b11c46740dd9c10da2fbe94ecda036c58 /src/net/ea | |
parent | c5e89f9543fcf7cb86d54e51356865e7001b6977 (diff) | |
download | manaplus-4ab7d38fe9033695e23042e97b55999b26f00fd7.tar.gz manaplus-4ab7d38fe9033695e23042e97b55999b26f00fd7.tar.bz2 manaplus-4ab7d38fe9033695e23042e97b55999b26f00fd7.tar.xz manaplus-4ab7d38fe9033695e23042e97b55999b26f00fd7.zip |
Add cards fields in inventoryitem.
Diffstat (limited to 'src/net/ea')
-rw-r--r-- | src/net/ea/inventoryitem.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/net/ea/inventoryitem.h b/src/net/ea/inventoryitem.h index c0f5e15a1..1b6fd7f65 100644 --- a/src/net/ea/inventoryitem.h +++ b/src/net/ea/inventoryitem.h @@ -42,6 +42,7 @@ class InventoryItem final public: int slot; int id; + int cards[4]; int quantity; uint8_t refine; unsigned char color; @@ -52,6 +53,7 @@ class InventoryItem final InventoryItem(const int slot0, const int id0, + const int *const cards0, const int quantity0, const uint8_t refine0, const unsigned char color0, @@ -69,6 +71,8 @@ class InventoryItem final favorite(favorite0), equip(equip0) { + for (int f = 0; f < 4; f ++) + cards[f] = cards0[f]; } }; |