Merge pull request #322 from ActualMandM/kade-fixinitcrash

check if initalized first before allowing user to skip intro
This commit is contained in:
Kade M 2021-04-26 18:51:15 -07:00 committed by GitHub
commit ac523fb120
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -335,7 +335,7 @@ class TitleState extends MusicBeatState
// FlxG.sound.play(Paths.music('titleShoot'), 0.7); // FlxG.sound.play(Paths.music('titleShoot'), 0.7);
} }
if (pressedEnter && !skippedIntro) if (pressedEnter && !skippedIntro && initialized)
{ {
skipIntro(); skipIntro();
} }