There was an error while loading. Please reload this page.
1 parent 1b61b6f commit dc784d5Copy full SHA for dc784d5
1 file changed
source/funkin/game/SplashGroup.hx
@@ -92,8 +92,8 @@ class SplashGroup extends FlxTypedGroup<Splash> {
92
}
93
94
function pregenerateSplashes(splash:Splash) {
95
- // make 7 additional splashes
96
- for(i in 0...7) {
+ // TODO: Fix a crash somewhere here https://github.com/CodenameCrew/CodenameEngine/pull/963
+ for (i in 0...Flags.MAX_SPLASHES - 1) {
97
var spr = Splash.copyFrom(splash);
98
spr.animation.finishCallback = function(name:String) {
99
spr.active = spr.visible = false;
@@ -133,4 +133,4 @@ class SplashGroup extends FlxTypedGroup<Splash> {
133
134
return __splash;
135
136
-}
+}
0 commit comments