mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-15 08:39:45 +00:00
SCI32: Fix potential null pointer dereference
CID 1361026.
This commit is contained in:
parent
4d3752f9af
commit
327f8f8299
@ -965,6 +965,10 @@ bool GfxTransitions32::processScroll(PlaneScroll &scroll) {
|
||||
|
||||
Plane *plane = g_sci->_gfxFrameout->getPlanes().findByObject(scroll.plane);
|
||||
|
||||
if (plane == nullptr) {
|
||||
error("[GfxTransitions32::processScroll]: Plane %04x:%04x not found", PRINT_REG(scroll.plane));
|
||||
}
|
||||
|
||||
if ((scroll.x == 0) && (scroll.y == 0)) {
|
||||
plane->deletePic(scroll.oldPictureId, scroll.newPictureId);
|
||||
finished = true;
|
||||
|
Loading…
x
Reference in New Issue
Block a user