From ab3acecce638d3d0831977dcae1b0101f7fb7634 Mon Sep 17 00:00:00 2001 From: wish Date: Wed, 19 Jul 2023 00:00:40 +1000 Subject: [PATCH] fix Quest Enumeration strings --- server/channelserver/handlers_quest.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/channelserver/handlers_quest.go b/server/channelserver/handlers_quest.go index 39642900e..b41338bf6 100644 --- a/server/channelserver/handlers_quest.go +++ b/server/channelserver/handlers_quest.go @@ -124,11 +124,11 @@ func loadQuestFile(s *Session, questId int) []byte { newStrings := byteframe.NewByteFrame() tempPointer := 352 for i := 0; i < 8; i++ { + questBody.WriteUint32(uint32(tempPointer)) temp := int64(fileBytes.Index()) fileBytes.Seek(int64(fileBytes.ReadUint32()), 0) tempString = fileBytes.ReadNullTerminatedBytes() - fileBytes.Seek(temp, 0) - questBody.WriteUint32(uint32(tempPointer + len(tempString) + 1)) + fileBytes.Seek(temp+4, 0) tempPointer += len(tempString) + 1 newStrings.WriteNullTerminatedBytes(tempString) }