summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/net/ea/inventoryitem.h4
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];
}
};