- account for KEEPDEPLETED flag when destroying items with InterHubAmount of 0 upon leaving a level

This commit is contained in:
Blue Shadow 2021-03-19 19:04:20 +03:00 committed by Christoph Oelckers
parent 8ef02544a7
commit acd553aa6f

View file

@ -2023,7 +2023,7 @@ class PlayerPawn : Actor
next = item.Inv;
if (item.InterHubAmount < 1)
{
item.Destroy ();
item.DepleteOrDestroy ();
}
item = next;
}