aboutsummaryrefslogtreecommitdiff
path: root/scumm/bundle.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'scumm/bundle.cpp')
-rw-r--r--scumm/bundle.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/scumm/bundle.cpp b/scumm/bundle.cpp
index 80ca8eb487..c5ec9344e0 100644
--- a/scumm/bundle.cpp
+++ b/scumm/bundle.cpp
@@ -224,6 +224,11 @@ int32 Bundle::decompressVoiceSampleByName(char *name, byte *comp_final) {
int32 Bundle::decompressMusicSampleByName(char *name, int32 number, byte *comp_final) {
int32 final_size = 0, i;
+ if (!name) {
+ warning("Bundle: decompressMusicSampleByName called with no name!");
+ return 0;
+ }
+
if (_musicFile.isOpen() == false) {
warning("Bundle: music file is not open!");
return 0;