Fix bit check

This commit is contained in:
Kurt 2016-11-29 22:30:14 -08:00
parent 2b6fb05c77
commit 47b4d6edd0

View File

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