- 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
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue