mirror of
https://github.com/kwsch/PKHeX
synced 2025-02-17 13:58:33 +00:00
Fix inventory count writing
This commit is contained in:
parent
d72db5ae72
commit
a50cfc003f
1 changed files with 1 additions and 1 deletions
|
@ -102,7 +102,7 @@ namespace PKHeX
|
|||
// Build Item Value
|
||||
uint val = 0;
|
||||
val |= (uint)(Items[i].Index & 0x3FF);
|
||||
val |= (uint)(Items[i].Index & 0x3FF) << 10;
|
||||
val |= (uint)(Items[i].Count & 0x3FF) << 10;
|
||||
Items[i].New |= OriginalItems.All(z => z.Index != Items[i].Index);
|
||||
if (Items[i].New)
|
||||
val |= 0x40000000;
|
||||
|
|
Loading…
Add table
Reference in a new issue