aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorColin Snover2017-07-23 15:58:15 -0500
committerColin Snover2017-07-23 16:01:19 -0500
commit2005ed79d60632b92e3653bf0da69479b2d2324b (patch)
tree922d23688e3f830793bdd7afd8ec02f6257d3e72
parentd38704e16d33b4ccd735a1b824edcdef60ce2a9c (diff)
downloadscummvm-rg350-2005ed79d60632b92e3653bf0da69479b2d2324b.tar.gz
scummvm-rg350-2005ed79d60632b92e3653bf0da69479b2d2324b.tar.bz2
scummvm-rg350-2005ed79d60632b92e3653bf0da69479b2d2324b.zip
SCI32: Emit a warning when an audio resource cannot be found
Refs Trac#9976.
-rw-r--r--engines/sci/sound/audio32.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/engines/sci/sound/audio32.cpp b/engines/sci/sound/audio32.cpp
index 04d1a47ece..be3f99dcea 100644
--- a/engines/sci/sound/audio32.cpp
+++ b/engines/sci/sound/audio32.cpp
@@ -776,6 +776,7 @@ uint16 Audio32::play(int16 channelIndex, const ResourceId resourceId, const bool
// probably rewriting a bunch of the resource manager.
Resource *resource = _resMan->findResource(resourceId, true);
if (resource == nullptr) {
+ warning("[Audio32::play]: %s could not be found", resourceId.toString().c_str());
return 0;
}