diff options
Diffstat (limited to 'scumm')
-rw-r--r-- | scumm/script_v8.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scumm/script_v8.cpp b/scumm/script_v8.cpp index eb8ac316d6..ece59d2430 100644 --- a/scumm/script_v8.cpp +++ b/scumm/script_v8.cpp @@ -1523,8 +1523,8 @@ void ScummEngine_v8::o8_getActorZPlane() { int z = a->forceClip; if (z == 100) { z = getMaskFromBox(a->walkbox); - if (z > gdi._numZBuffer) - z = gdi._numZBuffer; + if (z > gdi._numZBuffer - 1) + z = gdi._numZBuffer - 1; } push(z); |