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/inventoryitem.h | |
parent | ee12c6e77bd4d34d5fa682361127add32cc1a184 (diff) | |
download | mv-482782d74c61e226ed1ce81700708244565291f5.tar.gz mv-482782d74c61e226ed1ce81700708244565291f5.tar.bz2 mv-482782d74c61e226ed1ce81700708244565291f5.tar.xz mv-482782d74c61e226ed1ce81700708244565291f5.zip |
Add missing checks into net directory.
Diffstat (limited to 'src/net/ea/inventoryitem.h')
-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]; } |