Skip to content

Commit 040bf22

Browse files
committed
Fixed a crash when the "Loto" sprite is selected
1 parent 02d3bc3 commit 040bf22

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

common/build.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
/* This file is generated by git */
2-
#define BUILD "418"
2+
#define BUILD "419"

common/sprites.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2685,7 +2685,7 @@ void sprite(dw_rom *rom, const char *sprite_name)
26852685
printf("Setting player sprite to %s...\n", dwr_sprite_names[i]);
26862686
(*sprite_func[i-2])(rom);
26872687
} else {
2688-
for (i=2; i < sizeof(dwr_sprite_names) / sizeof(char*); i++) {
2688+
for (i=2; i < sprite_count(); i++) {
26892689
if (!strcmp(dwr_sprite_names[i], sprite_name)) {
26902690
printf("Setting player sprite to %s...\n", sprite_name);
26912691
(*sprite_func[i-2])(rom);

0 commit comments

Comments
 (0)