diff options
Diffstat (limited to 'script_v2.cpp')
-rw-r--r-- | script_v2.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/script_v2.cpp b/script_v2.cpp index c4957b49bb..0f7403a9c9 100644 --- a/script_v2.cpp +++ b/script_v2.cpp @@ -852,7 +852,7 @@ void Scumm::o6_walkActorToObj() { a = derefActorSafe(pop(), "o6_walkActorToObj"); if (obj >= 17) { - if (whereIsObject(obj)==-1) + if (whereIsObject(obj)==WIO_NOT_FOUND) return; getObjectXYPos(obj); startWalkActor(a, _xPos, _yPos, _dir); @@ -909,7 +909,7 @@ void Scumm::o6_putActorAtObject() { obj = pop(); a = derefActorSafe(pop(), "o6_putActorAtObject"); - if (whereIsObject(obj)!=-1) { + if (whereIsObject(obj)!=WIO_NOT_FOUND) { getObjectXYPos(obj); x = _xPos; y = _yPos; |