mirror of
https://github.com/edubart/otclient.git
synced 2025-10-15 12:04:55 +02:00
Fix market reload and a crash when exiting
This commit is contained in:
@@ -128,6 +128,7 @@ function initProtocol()
|
||||
|
||||
-- reloading module
|
||||
if g_game.isOnline() then
|
||||
MarketProtocol.registerProtocol()
|
||||
MarketProtocol.updateProtocol(g_game.getProtocolGame())
|
||||
end
|
||||
end
|
||||
@@ -139,6 +140,7 @@ function terminateProtocol()
|
||||
-- reloading module
|
||||
if not g_game.isOnline() then
|
||||
MarketProtocol.updateProtocol(nil)
|
||||
MarketProtocol.unregisterProtocol()
|
||||
end
|
||||
MarketProtocol = nil
|
||||
end
|
||||
|
Reference in New Issue
Block a user