Merge pull request #1095 from LuigiBlood/64dd_2

[64DD] 64DD disk conversion fix
This commit is contained in:
zilmar 2016-05-24 04:05:28 +10:00
commit a00011b0f3
1 changed files with 2 additions and 2 deletions

View File

@ -290,7 +290,7 @@ void CN64Disk::ConvertDiskFormat()
atrack = 0;
for (track = 0; track < ZoneTracks[zone]; track++)
{
if (track == SystemData[0x20 + zone * 0xC + atrack])
if (atrack < 0xC && track == SystemData[0x20 + zone * 0xC + atrack])
{
memset((void *)(&BlockData0), 0, BLOCKSIZE(zone));
memset((void *)(&BlockData1), 0, BLOCKSIZE(zone));
@ -327,7 +327,7 @@ void CN64Disk::ConvertDiskFormat()
atrack = 0xB;
for (track = 1; track < ZoneTracks[zone] + 1; track++)
{
if ((ZoneTracks[zone] - track) == SystemData[0x20 + (zone)* 0xC + atrack])
if (atrack > -1 && (ZoneTracks[zone] - track) == SystemData[0x20 + (zone)* 0xC + atrack])
{
memset((void *)(&BlockData0), 0, BLOCKSIZE(zone));
memset((void *)(&BlockData1), 0, BLOCKSIZE(zone));