From b415b73b4af39a143fe7bde52d5fec18ee47bdb8 Mon Sep 17 00:00:00 2001 From: Sam Date: Mon, 3 Mar 2014 15:54:58 +0100 Subject: [PATCH] Fix creature marks. Thanks to @dalkon --- src/client/protocolgameparse.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/client/protocolgameparse.cpp b/src/client/protocolgameparse.cpp index 579c8989..75a0b1a8 100644 --- a/src/client/protocolgameparse.cpp +++ b/src/client/protocolgameparse.cpp @@ -1678,7 +1678,13 @@ void ProtocolGame::parseChangeMapAwareRange(const InputMessagePtr& msg) void ProtocolGame::parseCreaturesMark(const InputMessagePtr& msg) { - int len = msg->getU8(); + int len; + if (g_game.getProtocolVersion() >= 1035) { + len = 1; + } else { + len = msg->getU8(); + } + for(int i=0; igetU32(); bool isPermanent = msg->getU8() != 1;