summaryrefslogtreecommitdiff
path: root/src/net/ea/inventoryitem.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-06-25 23:58:16 +0300
committerAndrei Karas <akaras@inbox.ru>2015-06-25 23:58:16 +0300
commit482782d74c61e226ed1ce81700708244565291f5 (patch)
treec955925952f091cdc71af8b1e7f8b3cdabecfa6b /src/net/ea/inventoryitem.h
parentee12c6e77bd4d34d5fa682361127add32cc1a184 (diff)
downloadmanaverse-482782d74c61e226ed1ce81700708244565291f5.tar.gz
manaverse-482782d74c61e226ed1ce81700708244565291f5.tar.bz2
manaverse-482782d74c61e226ed1ce81700708244565291f5.tar.xz
manaverse-482782d74c61e226ed1ce81700708244565291f5.zip
Add missing checks into net directory.
Diffstat (limited to 'src/net/ea/inventoryitem.h')
-rw-r--r--src/net/ea/inventoryitem.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/net/ea/inventoryitem.h b/src/net/ea/inventoryitem.h
index dd6f64b10..b318b2f23 100644
--- a/src/net/ea/inventoryitem.h
+++ b/src/net/ea/inventoryitem.h
@@ -79,6 +79,8 @@ class InventoryItem final
favorite(favorite0),
equip(equip0)
{
+ if (!cards0)
+ return;
for (int f = 0; f < 4; f ++)
cards[f] = cards0[f];
}