Skip to content

Commit

Permalink
#9 Fix a missing else causing the ItemID to be decremented twice resu…
Browse files Browse the repository at this point in the history
…lting in a negative value which causes a Seek error while reading the DAT file
  • Loading branch information
Xebeth committed May 26, 2023
1 parent 5de424c commit 9221982
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion LootBox/FFXIHelper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 9221982

Please sign in to comment.