From 7d964021d55b3d35b1741cf4f7ffcf3a10174588 Mon Sep 17 00:00:00 2001 From: Alejandro Muelas Date: Fri, 3 May 2024 15:50:53 +0200 Subject: [PATCH] fix: market browsing broken in pre-12.51 protocols --- modules/game_market/marketprotocol.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/game_market/marketprotocol.lua b/modules/game_market/marketprotocol.lua index 4ab26a58f2..08ef44b5ca 100644 --- a/modules/game_market/marketprotocol.lua +++ b/modules/game_market/marketprotocol.lua @@ -59,8 +59,8 @@ end function MarketProtocol.sendMarketBrowse(browseId, browseType) if g_game.getFeature(GamePlayerMarket) then local msg = OutputMessage.create() + msg:addU8(ClientOpcodes.ClientMarketBrowse) if g_game.getClientVersion() >= 1251 then - msg:addU8(ClientOpcodes.ClientMarketBrowse) msg:addU8(browseId) if browseType > 0 then msg:addU16(browseType)