Deal with some magic numbers re hdc_current

This commit is contained in:
Jasmine Iwanek
2024-07-08 00:40:52 -04:00
parent 516dc589b7
commit 215b3253a5
8 changed files with 9 additions and 8 deletions

View File

@@ -132,7 +132,7 @@ hdc_reset(void)
hdc_current, (machines[machine].flags & MACHINE_HDC) ? 1 : 0);
/* If we have a valid controller, add its device. */
if (hdc_current > 1)
if (hdc_current > HDC_INTERNAL)
device_add(controllers[hdc_current].device);
/* Now, add the tertiary and/or quaternary IDE controllers. */