Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2008-09-28 10:35:30 +0000
committerStijn Buys <ingar@osirion.org>2008-09-28 10:35:30 +0000
commit12adeedf16fecb140405ad99f8943fd9c7be8331 (patch)
treea2684221e0b639658b1490dc674af2c0f510f37a
parent8307192be1d246988112bf02128bb3ab68773aa5 (diff)
zone unload on module disconnect
-rw-r--r--src/core/gameinterface.cc4
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();