mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-31 22:53:54 +00:00
Handle invalid rects in kCanBeHere(). Fixes some odd crashes in Iceman
svn-id: r48098
This commit is contained in:
parent
24b0622e6f
commit
43ca6071ea
@ -152,6 +152,9 @@ bool GfxCompare::kernelCanBeHere(reg_t curObject, reg_t listReference) {
|
||||
checkRect.right = GET_SEL32V(_segMan, curObject, SELECTOR(brRight));
|
||||
checkRect.bottom = GET_SEL32V(_segMan, curObject, SELECTOR(brBottom));
|
||||
|
||||
if (!checkRect.isValidRect()) // can occur in Iceman
|
||||
return false;
|
||||
|
||||
adjustedRect = _coordAdjuster->onControl(checkRect);
|
||||
|
||||
signal = GET_SEL32V(_segMan, curObject, SELECTOR(signal));
|
||||
|
Loading…
Reference in New Issue
Block a user