mirror of
https://github.com/Milxnor/Project-Reboot-3.0.git
synced 2026-01-13 02:42:22 +01:00
fix 16.50, fix failing abilities s16+, ammo in bottom right
This commit is contained in:
@@ -189,6 +189,12 @@ bool AFortInventory::RemoveItem(const FGuid& ItemGuid, bool* bShouldUpdate, int
|
||||
if (!ItemDefinition)
|
||||
return false;
|
||||
|
||||
if (Count < 0)
|
||||
{
|
||||
Count = 0;
|
||||
bForceRemoval = true;
|
||||
}
|
||||
|
||||
auto NewCount = ReplicatedEntry->GetCount() - Count;
|
||||
|
||||
if (NewCount > 0 || (ItemDefinition->ShouldPersistWhenFinalStackEmpty() && !bForceRemoval))
|
||||
|
||||
Reference in New Issue
Block a user