Re-add destroying for unloading, other clean up:

* Cleaned some module terminate code
* Fixed "reload all" issues
This commit is contained in:
BeniS
2013-02-01 17:32:15 +13:00
parent 35e5dd8af8
commit 7f5dda5c8f
21 changed files with 31 additions and 77 deletions

View File

@@ -737,9 +737,7 @@ function terminate()
disconnect(g_game, { onGameEnd = Market.reset })
disconnect(g_game, { onGameEnd = Market.close })
if marketWindow then
marketWindow:destroy()
end
marketWindow:destroy()
Market = nil
end