aboutsummaryrefslogtreecommitdiff
path: root/engines/parallaction
diff options
context:
space:
mode:
authorAlyssa Milburn2013-04-17 23:20:13 +0200
committerAlyssa Milburn2013-04-17 23:20:13 +0200
commitc9ccba01df8abacd30b87d6b8b0904fb87b1b2f7 (patch)
tree21afd90471287eca92519961c377ebd856d9b61b /engines/parallaction
parenta514927381bbbde60538042db28e77f5da04780b (diff)
downloadscummvm-rg350-c9ccba01df8abacd30b87d6b8b0904fb87b1b2f7.tar.gz
scummvm-rg350-c9ccba01df8abacd30b87d6b8b0904fb87b1b2f7.tar.bz2
scummvm-rg350-c9ccba01df8abacd30b87d6b8b0904fb87b1b2f7.zip
PARALLACTION: Add some sanity checks to SoundMan_br::execute.
Diffstat (limited to 'engines/parallaction')
-rw-r--r--engines/parallaction/sound_br.cpp4
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: