- took the last methods aside from Tick and Serialize out of AInventory.

This commit is contained in:
Christoph Oelckers 2018-12-02 14:56:10 +01:00
commit 2cb0b2db87
6 changed files with 33 additions and 55 deletions

View file

@ -950,7 +950,7 @@ void AActor::ClearInventory()
AInventory *inv = *invp;
if (!(inv->ItemFlags & IF_UNDROPPABLE))
{
inv->DepleteOrDestroy();
DepleteOrDestroy(inv);
if (!(inv->ObjectFlags & OF_EuthanizeMe)) invp = &inv->Inventory; // was only depleted so advance the pointer manually.
}
else