mirror of
https://github.com/scummvm/scummvm.git
synced 2026-06-20 05:45:29 +00:00
SAGA2: Fix unsafe world access on objObscured
This commit is contained in:
@@ -4356,11 +4356,15 @@ bool objObscured(GameObject *testObj) {
|
||||
bool obscured = false;
|
||||
|
||||
if (isObject(testObj)) {
|
||||
debug(3, "STUB: objObscured");
|
||||
Point16 drawPos,
|
||||
org;
|
||||
ObjectSpriteInfo objSprInfo;
|
||||
ColorTable objColors;
|
||||
ProtoObj *proto = testObj->proto();
|
||||
ObjectID parent = testObj->_data.parentID;
|
||||
if (isWorld(parent) == false)
|
||||
return false;
|
||||
|
||||
// Calculate X, Y coordinates of the sprite
|
||||
TileToScreenCoords(testObj->getLocation(), drawPos);
|
||||
|
||||
Reference in New Issue
Block a user