From 8c4b116a2d34bb1490ef458ff597985ac590e55e Mon Sep 17 00:00:00 2001 From: Garrett Cox Date: Thu, 11 Jan 2024 03:59:27 +0000 Subject: Fix text icon being converted to int16 (#3) --- ZAPD/ZTextMM.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ZAPD/ZTextMM.cpp b/ZAPD/ZTextMM.cpp index 9709868..9903b31 100644 --- a/ZAPD/ZTextMM.cpp +++ b/ZAPD/ZTextMM.cpp @@ -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]); -- cgit v1.2.3