diff options
Diffstat (limited to 'script_v1.cpp')
-rw-r--r-- | script_v1.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/script_v1.cpp b/script_v1.cpp index 3852d6e698..910f10942a 100644 --- a/script_v1.cpp +++ b/script_v1.cpp @@ -1201,7 +1201,7 @@ void Scumm::o5_putActorAtObject() { a = derefActorSafe(getVarOrDirectByte(0x80), "o5_putActorAtObject"); obj = getVarOrDirectWord(0x40); - if (whereIsObject(obj)!=-1) + if (whereIsObject(obj)!=WIO_NOT_FOUND) getObjectXYPos(obj); else { _xPos = 240; @@ -1884,7 +1884,7 @@ void Scumm::o5_walkActorToObject() { a = derefActorSafe(getVarOrDirectByte(0x80), "o5_walkActorToObject"); obj = getVarOrDirectWord(0x40); - if (whereIsObject(obj)!=-1) { + if (whereIsObject(obj)!=WIO_NOT_FOUND) { getObjectXYPos(obj); startWalkActor(a, _xPos, _yPos, _dir); } |