diff options
author | Matthew Hoops | 2011-10-10 00:00:06 -0400 |
---|---|---|
committer | Matthew Hoops | 2011-10-10 00:00:06 -0400 |
commit | 099f4ce9f5c2472e986709457e52be866459750b (patch) | |
tree | ac7fb0a3016c46d58067c3956a3197fce65705cc /engines | |
parent | 82cadf68e8bcc4cb98af317ab31ad53928eac1b8 (diff) | |
download | scummvm-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
Diffstat (limited to 'engines')
-rw-r--r-- | engines/pegasus/neighborhood/neighborhood.cpp | 7 |
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() { |