aboutsummaryrefslogtreecommitdiff
path: root/engines/scumm/players/player_ad.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/scumm/players/player_ad.cpp')
-rw-r--r--engines/scumm/players/player_ad.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/scumm/players/player_ad.cpp b/engines/scumm/players/player_ad.cpp
index 9dd25c4a27..be1756290d 100644
--- a/engines/scumm/players/player_ad.cpp
+++ b/engines/scumm/players/player_ad.cpp
@@ -661,8 +661,8 @@ void Player_AD::parseSlot(int channel) {
++curOffset;
_channels[channel].state = kChannelStatePlay;
noteOffOn(channel);
- parseNote(&_notes[channel * 2 + 0], channel, curOffset + 0);
- parseNote(&_notes[channel * 2 + 1], channel, curOffset + 5);
+ parseNote(&_channels[channel].notes[0], channel, curOffset + 0);
+ parseNote(&_channels[channel].notes[1], channel, curOffset + 5);
return;
case 0x80:
@@ -699,7 +699,7 @@ void Player_AD::updateSlot(int channel) {
continue;
}
- Note *const note = &_notes[channel * 2 + num];
+ Note *const note = &_channels[channel].notes[num];
bool updateNote = false;
if (note->state == kNoteStateSustain) {