mirror of
https://github.com/edubart/otclient.git
synced 2025-10-15 20:14:54 +02:00
Re-add destroying for unloading, other clean up:
* Cleaned some module terminate code * Fixed "reload all" issues
This commit is contained in:
@@ -136,11 +136,17 @@ function EnterGame.terminate()
|
||||
removeEvent(autoLoginEvent)
|
||||
enterGame:destroy()
|
||||
enterGame = nil
|
||||
enterGameButton:destroy()
|
||||
enterGameButton = nil
|
||||
protocolBox = nil
|
||||
if motdWindow then
|
||||
motdWindow:destroy()
|
||||
motdWindow = nil
|
||||
end
|
||||
if motdButton then
|
||||
motdButton:destroy()
|
||||
motdButton = nil
|
||||
end
|
||||
if loadBox then
|
||||
loadBox:destroy()
|
||||
loadBox = nil
|
||||
|
Reference in New Issue
Block a user