From 47b4d6edd0aee1792ca9f6434b982de91c00f9d3 Mon Sep 17 00:00:00 2001 From: Kurt Date: Tue, 29 Nov 2016 22:30:14 -0800 Subject: [PATCH] Fix bit check --- PKHeX/Saves/Substructures/Inventory.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/PKHeX/Saves/Substructures/Inventory.cs b/PKHeX/Saves/Substructures/Inventory.cs index 7bfd3e336..085bc8849 100644 --- a/PKHeX/Saves/Substructures/Inventory.cs +++ b/PKHeX/Saves/Substructures/Inventory.cs @@ -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;