- took the last methods aside from Tick and Serialize out of AInventory.
This commit is contained in:
parent
db814dc333
commit
2cb0b2db87
6 changed files with 33 additions and 55 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue