Page MenuHomeFeedback Tracker

BaseInventoryStorageComponent::GetOccupiedVolume not taking additional volume into account
Closed, ResolvedPublic

Description

When using InventoryItemComponent::SetAdditionalVolume the overall GetOccupiedVolume from the storage does not update. The additional volume is not added. When the item is removed from the storage, however, the additional volume is subtracted, leading to a possibly negative overall volume.

Example with an item that has 100 volume.

  1. Item added to inventory -> 100 volume
  2. Item gets 100 additional volume -> still 100 volume reported instead of 200.
  3. Item is removed from storage -> GetOccupiedVolume reports -100, likely because on item remove it subtracted total volume from the memorized value of the storage.

Details

Severity
Major
Resolution
Open
Reproducibility
Always
Operating System
Windows 10 x64
Category
General

Event Timeline

Arkensor created this task.Dec 7 2022, 1:08 PM
Geez changed the task status from New to Acknowledged.Dec 7 2022, 1:34 PM
Geez closed this task as Resolved.Dec 9 2022, 11:08 AM
Geez claimed this task.
Geez added a subscriber: Geez.

Hello Arkensor.
The problem has been resolved internally and the fix will appear in one of the upcoming updates.
Regards,
Geez

Is this related to weapons not getting increased volume when magazine is loaded?

No it should not, your issue is something else and should be reported :)