Skip to content

Commit

Permalink
Upstream fix for music loading
Browse files Browse the repository at this point in the history
  • Loading branch information
dashodanger committed Oct 16, 2024
1 parent 9544b47 commit ea16438
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion host/file.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ cRSID_SIDheader *cRSID_processSIDfile(cRSID_C64instance *C64, unsigned char *fil
}
C64->RealSIDmode = (SIDheader->MagicString[0] == 'R');

if (SIDheader->LoadAddressH == 0 && SIDheader->LoadAddressH == 0)
if (SIDheader->LoadAddressH == 0 && SIDheader->LoadAddressL == 0)
{ // load-address taken from first 2 bytes of the C64 PRG
C64->LoadAddress = (filedata[SIDheader->HeaderSize + 1] << 8) + (filedata[SIDheader->HeaderSize + 0]);
SIDdataOffset = SIDheader->HeaderSize + 2;
Expand Down

0 comments on commit ea16438

Please sign in to comment.