From 4833c9bd2eb850931e8bd3779da6d1124ea0cfa4 Mon Sep 17 00:00:00 2001 From: EliteMasterEric Date: Mon, 6 Nov 2023 17:51:27 -0500 Subject: [PATCH] Fix a bug where F5 would crash in Week 6. --- .../funkin/play/cutscene/dialogue/Conversation.hx | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/source/funkin/play/cutscene/dialogue/Conversation.hx b/source/funkin/play/cutscene/dialogue/Conversation.hx index 46acf3f37..b2361c795 100644 --- a/source/funkin/play/cutscene/dialogue/Conversation.hx +++ b/source/funkin/play/cutscene/dialogue/Conversation.hx @@ -581,6 +581,19 @@ class Conversation extends FlxSpriteGroup implements IDialogueScriptedClass } } + /** + * Calls `kill()` on the group's members and then on the group itself. + * You can revive this group later via `revive()` after this. + */ + public override function kill():Void + { + _skipTransformChildren = true; + alive = false; + exists = false; + _skipTransformChildren = false; + if (group != null) group.kill(); + } + public override function toString():String { return 'Conversation($conversationId)';