diff options
-rw-r--r-- | engines/sci/sfx/soundcmd.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/engines/sci/sfx/soundcmd.cpp b/engines/sci/sfx/soundcmd.cpp index 7c0ceba982..74efeb43d5 100644 --- a/engines/sci/sfx/soundcmd.cpp +++ b/engines/sci/sfx/soundcmd.cpp @@ -213,8 +213,10 @@ reg_t SoundCommandParser::parseCommand(int argc, reg_t *argv, reg_t acc) { // cmdMuteSound and cmdVolume do not operate on an object, but need the number of // arguments passed. We load this in the value - if (obj.isNull()) + if (!strcmp(_soundCommands[command]->desc, "cmdMuteSound") || + !strcmp(_soundCommands[command]->desc, "cmdVolume")) { value = argc - 1; // minus the command + } if (argc == 6) { // cmdSendMidi byte channel = argv[2].toUint16() & 0xf; |