From 4ab7d38fe9033695e23042e97b55999b26f00fd7 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 21 Oct 2014 17:11:31 +0300 Subject: Add cards fields in inventoryitem. --- src/net/ea/inventoryitem.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') 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]; } }; -- cgit v1.2.3-60-g2f50