There's a issue when pressing 'repurchase' in the next round after buying a pistol.
It subtracts the value of a pistol you already have in the inventory instead of the real items which were repurchased.
I wrote it because I think the rg_remove_items(index1) solution will be the best possible solution