mirror of
https://github.com/libretro/scummvm.git
synced 2024-11-28 03:40:36 +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
|
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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user