aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/fullpipe/interaction.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/engines/fullpipe/interaction.cpp b/engines/fullpipe/interaction.cpp
index 89e3174c7e..08c8c8fe47 100644
--- a/engines/fullpipe/interaction.cpp
+++ b/engines/fullpipe/interaction.cpp
@@ -56,8 +56,7 @@ bool canInteractAny(GameObject *obj1, GameObject *obj2, int invId) {
}
InteractionController::~InteractionController() {
- _interactions.clear();
-
+ Common::for_each(_interactions.begin(), _interactions.end(), Common::DefaultDeleter<Interaction>());
removeMessageHandler(124, -1);
}