Skip to content

Commit dc784d5

Browse files
HEIHUAaRaltyro
andauthored
Band-aid fix crash caused by modifying Flags.MAX_SPLASHES (#963)
* 更新 SplashGroup.hx * Update SplashGroup.hx --------- Co-authored-by: Ralty <78720179+Raltyro@users.noreply.github.com>
1 parent 1b61b6f commit dc784d5

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

source/funkin/game/SplashGroup.hx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,8 @@ class SplashGroup extends FlxTypedGroup<Splash> {
9292
}
9393

9494
function pregenerateSplashes(splash:Splash) {
95-
// make 7 additional splashes
96-
for(i in 0...7) {
95+
// TODO: Fix a crash somewhere here https://github.com/CodenameCrew/CodenameEngine/pull/963
96+
for (i in 0...Flags.MAX_SPLASHES - 1) {
9797
var spr = Splash.copyFrom(splash);
9898
spr.animation.finishCallback = function(name:String) {
9999
spr.active = spr.visible = false;
@@ -133,4 +133,4 @@ class SplashGroup extends FlxTypedGroup<Splash> {
133133

134134
return __splash;
135135
}
136-
}
136+
}

0 commit comments

Comments
 (0)