From a744847bd8d793e77e2d0cb5447de19eb9958a04 Mon Sep 17 00:00:00 2001 From: glecko Date: Tue, 23 Apr 2024 12:59:25 +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)