fix another stupid bug

This commit is contained in:
Arisotura 2021-04-24 21:13:11 +02:00
parent 0882ea4dc6
commit ca524f000e
1 changed files with 1 additions and 1 deletions

View File

@ -561,7 +561,7 @@ int Reset()
if (ROMPath[ROMSlot_GBA][0] != '\0') if (ROMPath[ROMSlot_GBA][0] != '\0')
{ {
char ext[5] = {0}; int _len = strlen(ROMPath[ROMSlot_GBA]); char ext[5] = {0}; int _len = strlen(ROMPath[ROMSlot_GBA]);
strncpy(ext, ROMPath[ROMSlot_NDS] + _len - 4, 4); strncpy(ext, ROMPath[ROMSlot_GBA] + _len - 4, 4);
if(!strncmp(ext, ".gba", 4)) if(!strncmp(ext, ".gba", 4))
{ {