mirror of
https://github.com/edubart/otclient.git
synced 2025-10-15 03:54:54 +02:00
fix warnings and some reloading issues
This commit is contained in:
@@ -43,13 +43,15 @@ function Minimap.init()
|
||||
end
|
||||
|
||||
function Minimap.terminate()
|
||||
Keyboard.unbindKeyDown('Ctrl+M')
|
||||
disconnect(g_game, { onLogin = Minimap.reset })
|
||||
Keyboard.unbindKeyDown('Ctrl+M')
|
||||
|
||||
minimapWidget:destroy()
|
||||
minimapWidget = nil
|
||||
minimapButton:destroy()
|
||||
minimapButton = nil
|
||||
|
||||
Minimap = nil
|
||||
end
|
||||
|
||||
function Minimap.toggle()
|
||||
|
Reference in New Issue
Block a user