From 150ae69d572b46c88d04370aeb92d228ce482f67 Mon Sep 17 00:00:00 2001 From: NeeEoo Date: Sat, 14 Oct 2023 14:36:05 +0200 Subject: [PATCH] Oops --- source/funkin/backend/MusicBeatState.hx | 2 +- source/funkin/backend/MusicBeatSubstate.hx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/source/funkin/backend/MusicBeatState.hx b/source/funkin/backend/MusicBeatState.hx index fc89b4d5..1b5499de 100644 --- a/source/funkin/backend/MusicBeatState.hx +++ b/source/funkin/backend/MusicBeatState.hx @@ -171,7 +171,7 @@ class MusicBeatState extends FlxState implements IBeatReceiver // calls the function on the assigned script if(stateScripts != null) return stateScripts.call(name, args); - return null; + return defaultVal; } public function event(name:String, event:T):T { diff --git a/source/funkin/backend/MusicBeatSubstate.hx b/source/funkin/backend/MusicBeatSubstate.hx index 3d1ad3fc..4b4315ca 100644 --- a/source/funkin/backend/MusicBeatSubstate.hx +++ b/source/funkin/backend/MusicBeatSubstate.hx @@ -161,7 +161,7 @@ class MusicBeatSubstate extends FlxSubState implements IBeatReceiver // calls the function on the assigned script if(stateScripts != null) return stateScripts.call(name, args); - return null; + return defaultVal; } public function event(name:String, event:T):T {