diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-06-25 23:58:16 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-06-25 23:58:16 +0300 |
commit | 482782d74c61e226ed1ce81700708244565291f5 (patch) | |
tree | c955925952f091cdc71af8b1e7f8b3cdabecfa6b /src/net/ea | |
parent | ee12c6e77bd4d34d5fa682361127add32cc1a184 (diff) | |
download | plus-482782d74c61e226ed1ce81700708244565291f5.tar.gz plus-482782d74c61e226ed1ce81700708244565291f5.tar.bz2 plus-482782d74c61e226ed1ce81700708244565291f5.tar.xz plus-482782d74c61e226ed1ce81700708244565291f5.zip |
Add missing checks into net directory.
Diffstat (limited to 'src/net/ea')
-rw-r--r-- | src/net/ea/inventoryitem.h | 2 |
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]; } |