Skip to content

Commit 137af7f

Browse files
committed
lil dialogue fix
if u had another dialogue starting in the callback, in the new script Dialogue.cutscene would be always null
1 parent fcfc795 commit 137af7f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/funkin/game/cutscenes/DialogueCutscene.hx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ class DialogueCutscene extends Cutscene {
197197
dialogueScript.destroy();
198198

199199
super.destroy();
200-
cutscene = null;
200+
if (cutscene == this) cutscene = null;
201201
FlxG.cameras.remove(dialogueCamera);
202202
}
203203
}

0 commit comments

Comments
 (0)