diff options
Diffstat (limited to 'engines/m4/gui.cpp')
-rw-r--r-- | engines/m4/gui.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/engines/m4/gui.cpp b/engines/m4/gui.cpp index abdf0c8e53..8f949de9c5 100644 --- a/engines/m4/gui.cpp +++ b/engines/m4/gui.cpp @@ -1191,7 +1191,8 @@ bool GUIButton::onEvent(M4EventType eventType, int32 param, int x, int y, GUIObj _buttonState = BUTTON_PRESSED; } - _madsVm->_globals->invSuppressClickSound = false; + if (_vm->isM4()) + _m4Vm->globals()->invSuppressClickSound = false; } else { // Button isn't pressed if (_tracking) |