Fixed wrong pointer being used in PlayerFinishLevel, causing wrong inventory items to be destroyed.

This commit is contained in:
Major Cooke 2023-08-28 12:20:07 -05:00 committed by Christoph Oelckers
parent 5d38e4c476
commit 44623daafe

View file

@ -2111,7 +2111,7 @@ class PlayerPawn : Actor
let it = toDelete[i];
if (!it.bDestroyed)
{
item.DepleteOrDestroy();
it.DepleteOrDestroy();
}
}
}