From 482782d74c61e226ed1ce81700708244565291f5 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 25 Jun 2015 23:58:16 +0300 Subject: Add missing checks into net directory. --- src/net/ea/inventoryitem.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/net/ea') 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]; } -- cgit v1.2.3-70-g09d2