mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-26 22:11:43 +00:00
- Fixed: ABackpackItem::CreateTossable did not check for failure from the supermethod.
This commit is contained in:
parent
c4d2a021b0
commit
d558cf51a9
1 changed files with 4 additions and 1 deletions
|
@ -1792,7 +1792,10 @@ bool ABackpackItem::HandlePickup (AInventory *item)
|
||||||
AInventory *ABackpackItem::CreateTossable ()
|
AInventory *ABackpackItem::CreateTossable ()
|
||||||
{
|
{
|
||||||
ABackpackItem *pack = static_cast<ABackpackItem *>(Super::CreateTossable());
|
ABackpackItem *pack = static_cast<ABackpackItem *>(Super::CreateTossable());
|
||||||
pack->bDepleted = true;
|
if (pack != NULL)
|
||||||
|
{
|
||||||
|
pack->bDepleted = true;
|
||||||
|
}
|
||||||
return pack;
|
return pack;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue