aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Hoops2011-10-10 00:00:06 -0400
committerMatthew Hoops2011-10-10 00:00:06 -0400
commit099f4ce9f5c2472e986709457e52be866459750b (patch)
treeac7fb0a3016c46d58067c3956a3197fce65705cc
parent82cadf68e8bcc4cb98af317ab31ad53928eac1b8 (diff)
downloadscummvm-rg350-099f4ce9f5c2472e986709457e52be866459750b.tar.gz
scummvm-rg350-099f4ce9f5c2472e986709457e52be866459750b.tar.bz2
scummvm-rg350-099f4ce9f5c2472e986709457e52be866459750b.zip
PEGASUS: Add some missing Neighborhood destructor code
Now AI rules don't carry over to the next neighborhood :P
-rw-r--r--engines/pegasus/neighborhood/neighborhood.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/engines/pegasus/neighborhood/neighborhood.cpp b/engines/pegasus/neighborhood/neighborhood.cpp
index eb1d0df2bf..0c02030dfa 100644
--- a/engines/pegasus/neighborhood/neighborhood.cpp
+++ b/engines/pegasus/neighborhood/neighborhood.cpp
@@ -75,6 +75,13 @@ Neighborhood::~Neighborhood() {
_neighborhoodHotspots.deleteHotspots();
g_neighborhood = 0;
+
+ loadLoopSound1("");
+ loadLoopSound2("");
+ newInteraction(kNoInteractionID);
+
+ if (g_AIArea)
+ g_AIArea->removeAllRules();
}
void Neighborhood::init() {