GRAPHICS: Make JPEG::getComponent error out if component was not found

svn-id: r55587
This commit is contained in:
Max Horn 2011-01-28 09:50:05 +00:00
parent 96d91ec182
commit c44f9bdb1d

View File

@ -717,6 +717,7 @@ Surface *JPEG::getComponent(uint c) {
if (_components[i].id == c) // We found the desired component if (_components[i].id == c) // We found the desired component
return &_components[i].surface; return &_components[i].surface;
error("JPEG::getComponent: No component %d present", c);
return NULL; return NULL;
} }