mirror of
https://github.com/edubart/otclient.git
synced 2025-10-16 04:24: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:
@@ -18,17 +18,16 @@ function terminate()
|
||||
onGameEnd = destroyWindows})
|
||||
|
||||
destroyWindows()
|
||||
questLogButton:destroy()
|
||||
end
|
||||
|
||||
function destroyWindows()
|
||||
if questLogWindow then
|
||||
questLogWindow:destroy()
|
||||
questLogWindow = nil
|
||||
end
|
||||
|
||||
if questLineWindow then
|
||||
questLineWindow:destroy()
|
||||
questLineWindow = nil
|
||||
end
|
||||
end
|
||||
|
||||
|
Reference in New Issue
Block a user