lil dialogue fix

if u had another dialogue starting in the callback, in the new script Dialogue.cutscene would be always null
This commit is contained in:
⍚~Nex
2025-05-12 02:23:44 +02:00
parent fcfc7950a1
commit 137af7fdb6
@@ -197,7 +197,7 @@ class DialogueCutscene extends Cutscene {
dialogueScript.destroy(); dialogueScript.destroy();
super.destroy(); super.destroy();
cutscene = null; if (cutscene == this) cutscene = null;
FlxG.cameras.remove(dialogueCamera); FlxG.cameras.remove(dialogueCamera);
} }
} }