From d558cf51a9819723969b18d715a9162982c8a7ca Mon Sep 17 00:00:00 2001 From: Randy Heit Date: Tue, 8 Oct 2013 19:59:46 -0500 Subject: [PATCH] - Fixed: ABackpackItem::CreateTossable did not check for failure from the supermethod. --- src/g_shared/a_pickups.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/g_shared/a_pickups.cpp b/src/g_shared/a_pickups.cpp index 3ebcedb40..cc559ea94 100644 --- a/src/g_shared/a_pickups.cpp +++ b/src/g_shared/a_pickups.cpp @@ -1792,7 +1792,10 @@ bool ABackpackItem::HandlePickup (AInventory *item) AInventory *ABackpackItem::CreateTossable () { ABackpackItem *pack = static_cast(Super::CreateTossable()); - pack->bDepleted = true; + if (pack != NULL) + { + pack->bDepleted = true; + } return pack; }