Skip to content

Commit

Permalink
SCUMM: (iMUSE/Amiga) - Fix compiler warning (#1751)
Browse files Browse the repository at this point in the history
  • Loading branch information
jepael authored and athrxx committed Jul 17, 2019
1 parent a6bf63b commit afb9ff0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions engines/scumm/imuse/drivers/amiga.cpp
Expand Up @@ -66,7 +66,7 @@ class SoundChannel_Amiga {
void updateLevel();
void updateEnvelope();

uint8 note() const { return _note; }
uint8 getNote() const { return _note; }
SoundChannel_Amiga *next() const { return _next; }

private:
Expand Down Expand Up @@ -504,7 +504,7 @@ void IMusePart_Amiga::send(uint32 b) {

void IMusePart_Amiga::noteOff(byte note) {
for (SoundChannel_Amiga *cur = _out; cur; cur = cur->next()) {
if (note == cur->note()) {
if (note == cur->getNote()) {
if (_sustain)
cur->ctrl_sustain(true);
else
Expand Down

0 comments on commit afb9ff0

Please sign in to comment.