Fix market error when logging out, added 910 protocol support.

master
BeniS 12 years ago
parent bdbce01c97
commit 621b1402c5

@ -811,11 +811,12 @@ end
function Market.close(notify)
if notify == nil then notify = true end
marketWindow:hide()
marketWindow:unlock()
Market.clearSelectedItem()
if notify then
MarketProtocol.sendMarketLeave()
if not marketWindow:isHidden() then
marketWindow:hide()
marketWindow:unlock()
if notify then
MarketProtocol.sendMarketLeave()
end
end
end

@ -48,8 +48,8 @@ end
function g_game.getSupportedProtocols()
return {
810, 853, 854, 860, 861, 862, 870, 940,
944, 953, 954, 960, 961
810, 853, 854, 860, 861, 862, 870,
910, 940, 944, 953, 954, 960, 961
}
end

Loading…
Cancel
Save