Skip to content

Commit

Permalink
fix: market browsing broken in pre-12.51 protocols
Browse files Browse the repository at this point in the history
  • Loading branch information
glecko authored May 3, 2024
1 parent 597aa57 commit 7d96402
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/game_market/marketprotocol.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 7d96402

Please sign in to comment.