aboutsummaryrefslogtreecommitdiff
path: root/kyra/kyra.cpp
diff options
context:
space:
mode:
authorJohannes Schickel2005-12-12 17:39:01 +0000
committerJohannes Schickel2005-12-12 17:39:01 +0000
commit080039cf1437bfc2de9716f40612dd4379dc7853 (patch)
tree66fbee33590feed132fee869583bc132f3be30dd /kyra/kyra.cpp
parent701bdbda9dabac0884bbf7de14bea3593a7377ce (diff)
downloadscummvm-rg350-080039cf1437bfc2de9716f40612dd4379dc7853.tar.gz
scummvm-rg350-080039cf1437bfc2de9716f40612dd4379dc7853.tar.bz2
scummvm-rg350-080039cf1437bfc2de9716f40612dd4379dc7853.zip
Reworked the resource manager. Now it doesn't load all package files into
memory but loads the needed part from the original files if needed. Also added CHAPTER1.VRM to the default CD filelist to fix that scummvm quits then looking at items in the CD version. (CHAPTER[2-5].VRM is NOT needed since they are the same files as CHAPTER1.VRM). svn-id: r19784
Diffstat (limited to 'kyra/kyra.cpp')
-rw-r--r--kyra/kyra.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/kyra/kyra.cpp b/kyra/kyra.cpp
index b3f7e0deb8..91b8fdac69 100644
--- a/kyra/kyra.cpp
+++ b/kyra/kyra.cpp
@@ -911,7 +911,7 @@ void KyraEngine::snd_playSoundEffect(int track) {
void KyraEngine::snd_playVoiceFile(int id) {
debug(9, "KyraEngine::snd_playVoiceFile(%d)", id);
char vocFile[8];
- assert(id >= 0 && id < 1000);
+ assert(id >= 0 && id < 9999);
sprintf(vocFile, "%03d.VOC", id);
uint32 fileSize = 0;
byte *fileData = 0;