From 7d4df98d1711bb3bdb2f9e79fadae94af2ac3cd5 Mon Sep 17 00:00:00 2001 From: kokekanon <114332266+kokekanon@users.noreply.github.com> Date: Mon, 25 Nov 2024 13:11:04 -0300 Subject: [PATCH] Update src/client/protocolgameparse.cpp Co-authored-by: Luan Luciano --- src/client/protocolgameparse.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/client/protocolgameparse.cpp b/src/client/protocolgameparse.cpp index 9ec205f10..ccf2bcf3e 100644 --- a/src/client/protocolgameparse.cpp +++ b/src/client/protocolgameparse.cpp @@ -3829,9 +3829,8 @@ void ProtocolGame::parseCyclopediaHousesInfo(const InputMessagePtr& msg) msg->getU8(); // 0x01 msg->getU32(); // houseClientId - const uint16_t size = msg->getU16(); // g_game().map.houses.getHouses() - - for (auto i = 0; i < size; ++i) { + const uint16_t housesList = msg->getU16(); // g_game().map.houses.getHouses() + for (auto i = 0; i < housesList; ++i) { msg->getU32(); // getClientId } // TO-DO Lua // Otui