From c7e887b9ae34268fa555d61df57a3cd040d8f30d Mon Sep 17 00:00:00 2001 From: Karl Semich Date: Tue, 1 Jan 2019 21:05:08 -0500 Subject: [PATCH] stop ai when map is unloaded fixes #97 --- scripts/game_logic.gd | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/game_logic.gd b/scripts/game_logic.gd index 0b1d7ade..89df29b0 100644 --- a/scripts/game_logic.gd +++ b/scripts/game_logic.gd @@ -290,6 +290,7 @@ func unload_map(): return is_map_loaded = false + self.bag.perform.stop_ai_timer() self.bag.storyteller.clear_stories() if action_controller.active_indicator.is_inside_tree(): action_controller.active_indicator.get_parent().remove_child(action_controller.active_indicator)