From ea164380df44313973df3917505f8c0bd6fb81d0 Mon Sep 17 00:00:00 2001 From: dashodanger Date: Tue, 15 Oct 2024 21:09:55 -0600 Subject: [PATCH] Upstream fix for music loading --- host/file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/host/file.c b/host/file.c index 7ca2f5c..cc75061 100644 --- a/host/file.c +++ b/host/file.c @@ -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;