diff options
Diffstat (limited to 'engines')
-rw-r--r-- | engines/scumm/proc3ARM.s | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/engines/scumm/proc3ARM.s b/engines/scumm/proc3ARM.s index cefe37153e..e3c20cc05c 100644 --- a/engines/scumm/proc3ARM.s +++ b/engines/scumm/proc3ARM.s @@ -198,7 +198,8 @@ middleloop: @ r14= len MOV r5,r12 @ loopCount = height - CMP r5,r14 @ if (loopCount > len) + CMP r14,#0 + CMPNE r5,r14 @ if (len != 0 && loopCount > len) MOVGT r5,r14 @ loopCount = len SUB r12,r12,r5 @ height -= loopCount SUB r14,r14,r5 @ len -= loopCount |