Author Topic: [Resolved] Ammo disappeared or didn't exist  (Read 18428 times)

Nomad

  • Sr. Member
  • ****
  • Posts: 453
Re: [Resolved] Ammo disappeared or didn't exist
« Reply #15 on: November 15, 2017, 04:41:50 AM »
Hmm... I take it that the first and second equipped item is the order in which they are equipped, rather than where they appear in the equip window.
The gun was equipped after the medpack, so the gun is the second equipped item (even though it appears above the medpack in the inventory/equip screen).

That is a pretty obscure little bit of required extra information. Nicely found.

Daithi

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1250
Re: [Resolved] Ammo disappeared or didn't exist
« Reply #16 on: November 15, 2017, 10:23:30 AM »
Oops, I got that wrong, it had to be in the first equipped slot (as in your screenshots) for the bug to occur. There's optimization code in place which only checks the inventories for 0 size stacks to remove if an item has been reloaded, and this wasn't being called if there was another item in slot 2.

Nomad

  • Sr. Member
  • ****
  • Posts: 453
Re: [Resolved] Ammo disappeared or didn't exist
« Reply #17 on: November 16, 2017, 09:28:50 AM »
Ok. Cool.  =)
Good to see it's finally nailed down.

ushas

  • Hero Member
  • *****
  • Posts: 661
Re: [Resolved] Ammo disappeared or didn't exist
« Reply #18 on: November 16, 2017, 04:25:36 PM »
Fascinating.