Skip to content

Commit ae917bc

Browse files
committed
Update FreeplayState.hx
1 parent 93d828a commit ae917bc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

source/states/FreeplayState.hx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,8 +145,8 @@ class FreeplayState extends MusicBeatState
145145

146146
// Check if the Victory Song is cleared.
147147
{
148-
var victorySong = APEntryState.apGame.getSongAndMod(APEntryState.victorySong);
149-
if (APEntryState.apGame.checkGoal(victorySong.song, victorySong.mod))
148+
var victorySong = APEntryState.apGame?.getSongAndMod(APEntryState.victorySong);
149+
if (APEntryState.apGame?.checkGoal(victorySong.song, victorySong.mod))
150150
trace("Victory song is cleared!");
151151
}
152152

0 commit comments

Comments
 (0)