From 4e516f6a15b488252b730269ea5290503b6901df Mon Sep 17 00:00:00 2001 From: MillhioreBT Date: Mon, 13 Dec 2021 01:56:11 -0400 Subject: [PATCH] fix the client crash when you open the missions window --- src/protocolgame.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/protocolgame.cpp b/src/protocolgame.cpp index fa1dafd118..411473a164 100644 --- a/src/protocolgame.cpp +++ b/src/protocolgame.cpp @@ -2366,8 +2366,10 @@ void ProtocolGame::sendQuestLine(const Quest* quest) msg.add(quest->getID()); msg.addByte(quest->getMissionsCount(player)); + uint16_t missionId = 0; for (const Mission& mission : quest->getMissions()) { if (mission.isStarted(player)) { + msg.add(++missionId); msg.addString(mission.getName(player)); msg.addString(mission.getDescription(player)); }