Fix pouch sanitize variable

datasize not max count doh
Closes #621
This commit is contained in:
Kurt
2016-12-10 08:58:19 -08:00
parent a46d84f9b3
commit 23aed12f16

View File

@@ -261,7 +261,7 @@ public void sortName(string[] names, bool reverse = false)
public void sanitizePouch(bool HaX, int MaxItemID)
{
var x = Items.Where(item => item.Valid(LegalItems, HaX, MaxItemID)).ToArray();
Items = x.Concat(new byte[MaxCount - x.Length].Select(i => new InventoryItem())).ToArray();
Items = x.Concat(new byte[PouchDataSize - x.Length].Select(i => new InventoryItem())).ToArray();
}
}
}