aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Horn2011-01-28 09:50:05 +0000
committerMax Horn2011-01-28 09:50:05 +0000
commitc44f9bdb1d5122f3f7b7f08a4ff51ca58d4ef4e1 (patch)
tree05f2ec95aa2ae16737821010efd05e84e9694520
parent96d91ec1822a8bf898d900792a69cffd2f898ada (diff)
downloadscummvm-rg350-c44f9bdb1d5122f3f7b7f08a4ff51ca58d4ef4e1.tar.gz
scummvm-rg350-c44f9bdb1d5122f3f7b7f08a4ff51ca58d4ef4e1.tar.bz2
scummvm-rg350-c44f9bdb1d5122f3f7b7f08a4ff51ca58d4ef4e1.zip
GRAPHICS: Make JPEG::getComponent error out if component was not found
svn-id: r55587
-rw-r--r--graphics/jpeg.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/graphics/jpeg.cpp b/graphics/jpeg.cpp
index 82a08dbbaa..f918229bdd 100644
--- a/graphics/jpeg.cpp
+++ b/graphics/jpeg.cpp
@@ -717,6 +717,7 @@ Surface *JPEG::getComponent(uint c) {
if (_components[i].id == c) // We found the desired component
return &_components[i].surface;
+ error("JPEG::getComponent: No component %d present", c);
return NULL;
}