Hello,
I think I found some problem.
When I drop empty guns to backpack that gun just disappeared.
So I try to fix like below and it looks like works.
Is it ok to fix like that? if not could you please fix it?
Original code :
PHP Code:
int AddItem(int ammoCount, Item reg, bool suppressSound = false, bool allowStacking = true)
{
int leftover = ammoCount;
for (int i; i < COL_MAX; i++) {
if (leftover > 0 && (reg.columns & (1 << i))) {
leftover = this.AddItemToColumn(i, ammoCount, reg, suppressSound, allowStacking);
}
}
return leftover;
}
I try to fix :
PHP Code:
int AddItem(int ammoCount, Item reg, bool suppressSound = false, bool allowStacking = true)
{
int leftover = ammoCount;
for (int i; i < COL_MAX; i++) {
if (leftover > -1 && (reg.columns & (1 << i))) {
leftover = this.AddItemToColumn(i, ammoCount, reg, suppressSound, allowStacking);
}
}
return leftover;
}
And when I try to Equip backpack it looks like all type of slash weapon can equit it. Not just only works with punch.
Thank you!