Skip to content

Commit

Permalink
PEGASUS: Add some missing Neighborhood destructor code
Browse files Browse the repository at this point in the history
Now AI rules don't carry over to the next neighborhood :P
  • Loading branch information
Matthew Hoops committed Oct 10, 2011
1 parent 82cadf6 commit 099f4ce
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions engines/pegasus/neighborhood/neighborhood.cpp
Expand Up @@ -75,6 +75,13 @@ Neighborhood::~Neighborhood() {

_neighborhoodHotspots.deleteHotspots();
g_neighborhood = 0;

loadLoopSound1("");
loadLoopSound2("");
newInteraction(kNoInteractionID);

if (g_AIArea)
g_AIArea->removeAllRules();
}

void Neighborhood::init() {
Expand Down

0 comments on commit 099f4ce

Please sign in to comment.