summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGarrett Cox <garrettjcox@gmail.com>2024-01-11 03:59:27 +0000
committerGitHub <noreply@github.com>2024-01-10 22:59:27 -0500
commit8c4b116a2d34bb1490ef458ff597985ac590e55e (patch)
treea9c3dd34966f8727fc973c96d056009b1a2486fb
parent51917d817a5828c075ec1e31eac4205e9b456ea7 (diff)
Fix text icon being converted to int16 (#3)
-rw-r--r--ZAPD/ZTextMM.cpp8
1 files 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]);