mirror of
https://github.com/libretro/scummvm.git
synced 2024-11-27 19:30:41 +00:00
GRAPHICS: Make JPEG::getComponent error out if component was not found
svn-id: r55587
This commit is contained in:
parent
96d91ec182
commit
c44f9bdb1d
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user