Skip to content

Commit

Permalink
D'oh!
Browse files Browse the repository at this point in the history
  • Loading branch information
Geokureli authored Nov 24, 2024
1 parent 6fd06f5 commit 4cd9616
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flixel/system/frontEnds/CameraFrontEnd.hx
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ class CameraFrontEnd
if (position >= list.length)
return add(newCamera);

final childIndex = FlxG.game.getChildIndex(list[position]);
final childIndex = FlxG.game.getChildIndex(list[position].flashSprite);
FlxG.game.addChildAt(newCamera.flashSprite, childIndex);

list.insert(position, newCamera);
Expand Down

0 comments on commit 4cd9616

Please sign in to comment.