- Fixed: ABackpackItem::CreateTossable did not check for failure from the supermethod.

This commit is contained in:
Randy Heit 2013-10-08 19:59:46 -05:00
parent c4d2a021b0
commit d558cf51a9

View file

@ -1792,7 +1792,10 @@ bool ABackpackItem::HandlePickup (AInventory *item)
AInventory *ABackpackItem::CreateTossable ()
{
ABackpackItem *pack = static_cast<ABackpackItem *>(Super::CreateTossable());
pack->bDepleted = true;
if (pack != NULL)
{
pack->bDepleted = true;
}
return pack;
}