Skip to content

Commit

Permalink
Fix text icon being converted to int16 (HarbourMasters#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
garrettjoecox authored Jan 11, 2024
1 parent 51917d8 commit 8c4b116
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ZAPD/ZTextMM.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,10 @@ void ZTextMM::ParseMM()

msgEntry.textboxType = (rawData[msgPtr + 0]);
msgEntry.textboxYPos = (rawData[msgPtr + 1]);
msgEntry.icon = BitConverter::ToInt16BE(rawData, msgPtr + 2);
msgEntry.nextMessageID = BitConverter::ToInt16BE(rawData, msgPtr + 4);
msgEntry.firstItemCost = BitConverter::ToInt16BE(rawData, msgPtr + 6);
msgEntry.secondItemCost = BitConverter::ToInt16BE(rawData, msgPtr + 8);
msgEntry.icon = (rawData[msgPtr + 2]);
msgEntry.nextMessageID = BitConverter::ToInt16BE(rawData, msgPtr + 3);
msgEntry.firstItemCost = BitConverter::ToInt16BE(rawData, msgPtr + 5);
msgEntry.secondItemCost = BitConverter::ToInt16BE(rawData, msgPtr + 7);

msgEntry.segmentId = (codeData[langPtr + 4]);

Expand Down

0 comments on commit 8c4b116

Please sign in to comment.