- 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

@ -794,7 +794,7 @@ static int UseHealthItems(TArray<AInventory *> &Items, int &saveHealth)
saveHealth -= maxhealth;
if (--Items[index]->Amount == 0)
{
Items[index]->DepleteOrDestroy ();
DepleteOrDestroy (Items[index]);
Items.Delete(index);
break;
}