From c44f9bdb1d5122f3f7b7f08a4ff51ca58d4ef4e1 Mon Sep 17 00:00:00 2001 From: Max Horn Date: Fri, 28 Jan 2011 09:50:05 +0000 Subject: GRAPHICS: Make JPEG::getComponent error out if component was not found svn-id: r55587 --- graphics/jpeg.cpp | 1 + 1 file changed, 1 insertion(+) 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; } -- cgit v1.2.3