All Questions

Community

Eduardo Assis(edassis)

InventoryBar stacking the remanescent rather than the actual avaible_space

At the InventoryBar's add_to_first_available_inventory function we have:

if item.stack_count > available_space:
var transfer_count := item.stack_count - available_space
panel.held_item.stack_count += transfer_count
item.stack_count -= transfer_count

But this way we will store the remaining items instead of those that fit in available_space.

I think this is more correct:

if item.stack_count > available_space:
panel.held_item.stack_count += available_space
item.stack_count -= available_space
  • Razoric replied

    You're right. Oops. Will issue a fix.