diff options
author | Stijn Buys <ingar@osirion.org> | 2008-09-28 10:35:30 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2008-09-28 10:35:30 +0000 |
commit | 12adeedf16fecb140405ad99f8943fd9c7be8331 (patch) | |
tree | a2684221e0b639658b1490dc674af2c0f510f37a | |
parent | 8307192be1d246988112bf02128bb3ab68773aa5 (diff) |
zone unload on module disconnect
-rw-r--r-- | src/core/gameinterface.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/core/gameinterface.cc b/src/core/gameinterface.cc index 17623f2..1ea3b55 100644 --- a/src/core/gameinterface.cc +++ b/src/core/gameinterface.cc @@ -81,7 +81,9 @@ void GameInterface::clear() // remove all zones for (Zone::Registry::iterator it = Zone::registry().begin(); it != Zone::registry().end(); it++) { - delete (*it).second; + Zone *zone = (*it).second; + application()->notify_zoneclear(zone); + delete zone; } Zone::registry().clear(); |