From 8f80241571167d0bc120f1c278527b69ae2b15ef Mon Sep 17 00:00:00 2001 From: Travis Howell Date: Tue, 27 Jan 2004 17:22:08 +0000 Subject: Add safety check. svn-id: r12638 --- simon/debugger.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'simon') diff --git a/simon/debugger.cpp b/simon/debugger.cpp index dae0a64662..231ac067ec 100644 --- a/simon/debugger.cpp +++ b/simon/debugger.cpp @@ -90,7 +90,8 @@ bool Debugger::Cmd_PlayMusic(int argc, const char **argv) { bool Debugger::Cmd_PlayVoice(int argc, const char **argv) { if (argc > 1) { uint voice = atoi(argv[1]); - _vm->_sound->playVoice(voice); + if ((_vm->_game & GF_SIMON2 && voice < 3623) || (!(_vm->_game & GF_SIMON2) && voice < 1997)) + _vm->_sound->playVoice(voice); } else DebugPrintf("Syntax: voice \n"); -- cgit v1.2.3