Merge pull request #898 from pokecal/master

Fix Gen7 freespace-inventory flags
This commit is contained in:
Kaphotics 2017-02-26 20:38:35 -08:00 committed by GitHub
commit b42504b2ff

View File

@ -98,7 +98,7 @@ public void getPouch7(ref byte[] Data)
Index = (int)(val & 0x3FF),
Count = (int)(val >> 10 & 0x3FF),
New = (val & 0x40000000) != 0, // 30th bit is "NEW"
FreeSpace = (val & 0x100000) != 0, // 22th bit is "FREE SPACE"
FreeSpace = (val >> 20 & 0x3FF) != 0, // "FREE SPACE" sortIndex
};
}
Items = items;