aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/tinsel/graphics.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/engines/tinsel/graphics.cpp b/engines/tinsel/graphics.cpp
index a15f5aa0dd..210bff0d5f 100644
--- a/engines/tinsel/graphics.cpp
+++ b/engines/tinsel/graphics.cpp
@@ -472,8 +472,10 @@ static void PackedWrtNonZero(DRAWOBJECT *pObj, uint8 *srcP, uint8 *destP,
if (!eolFlag) {
// Assert that the next bytes signal a line end
- assert((*srcP++ & 0xf) == 0);
- assert(*srcP++ == 0);
+ uint8 d = *srcP++;
+ assert((d & 0xf) == 0);
+ d = *srcP++;
+ assert(d == 0);
}
if (topClip > 0)