From 92219821d9856783cfdf18713cb749f35498330f Mon Sep 17 00:00:00 2001 From: Xebeth Date: Fri, 26 May 2023 18:42:01 +0100 Subject: [PATCH] #9 Fix a missing else causing the ItemID to be decremented twice resulting in a negative value which causes a Seek error while reading the DAT file --- LootBox/FFXIHelper.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LootBox/FFXIHelper.cpp b/LootBox/FFXIHelper.cpp index 15cd84d..a580244 100644 --- a/LootBox/FFXIHelper.cpp +++ b/LootBox/FFXIHelper.cpp @@ -717,7 +717,7 @@ void FFXiHelper::GetFileFromItemID(DWORD &ItemID, CString &DATFile, int Language } // 8704 (0x2200) to 10239 (0x27FF) General Items 2 - if (ItemID <= 0x27FF) + else if (ItemID <= 0x27FF) { ItemID -= 0x2200;