Skip to content

Commit bcafd46

Browse files
committed
no longer ufo on first boot
1 parent 7b20823 commit bcafd46

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

LIB/asm/nesdash.s

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4296,7 +4296,7 @@ vert_skip:
42964296

42974297
DEY ; Y is 1
42984298

4299-
LDX #0
4299+
LDX #$FF
43004300
loading_loop:
43014301
;__ Y is 0
43024302
LDA (sprite_data), y ;
@@ -4311,7 +4311,7 @@ vert_skip:
43114311
; Part where it was writing to activesprites_active
43124312
; is ommited as it is done in load_next_sprite
43134313

4314-
CPX #::_max_loaded_sprites ; Repeat for all sprite slots
4314+
CPX #::_max_loaded_sprites-1 ; Repeat for all sprite slots
43154315
BNE loading_loop ;__
43164316

43174317
return:

0 commit comments

Comments
 (0)