mirror of
https://github.com/whscullin/apple2js.git
synced 2024-01-12 14:14:38 +00:00
During the typescriptification of `disk2.js`
(9d0ec5489c
), `drive`, a parameter
reference, was changed into `this.drive`, the current active disk, by
mistake. This change fixes that error.
This commit is contained in:
parent
db36ca4553
commit
a94fdaa065
@ -302,7 +302,7 @@ export default class DiskII implements Card {
|
||||
private writeMode = false;
|
||||
/** Whether the selected drive is on. */
|
||||
private on = false;
|
||||
/** Current drive number (0, 1). */
|
||||
/** Current drive number (1, 2). */
|
||||
private drive: DriveNumber = 1;
|
||||
/** Current drive object. */
|
||||
private cur = this.drives[this.drive - 1];
|
||||
@ -783,8 +783,8 @@ export default class DiskII implements Card {
|
||||
}
|
||||
|
||||
Object.assign(cur, newDisk);
|
||||
this.updateDirty(this.drive, false);
|
||||
this.callbacks.label(this.drive, name);
|
||||
this.updateDirty(drive, false);
|
||||
this.callbacks.label(drive, name);
|
||||
}
|
||||
|
||||
getJSON(drive: DriveNumber, pretty: boolean) {
|
||||
|
Loading…
Reference in New Issue
Block a user