diff options
-rw-r--r-- | engines/parallaction/sound_br.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/engines/parallaction/sound_br.cpp b/engines/parallaction/sound_br.cpp index ad510eb1f1..4a643aaf1d 100644 --- a/engines/parallaction/sound_br.cpp +++ b/engines/parallaction/sound_br.cpp @@ -507,10 +507,14 @@ void SoundMan_br::execute(int command, const char *parm) { stopMusic(); break; case SC_SETMUSICFILE: + if (!parm) + error("no parameter passed to SC_SETMUSICFILE"); setMusicFile(parm); break; case SC_PLAYSFX: + if (!parm) + error("no parameter passed to SC_PLAYSFX"); playSfx(parm, _sfxChannel, _sfxLooping, _sfxVolume); break; case SC_STOPSFX: |