aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorWillem Jan Palenstijn2008-12-17 19:25:54 +0000
committerWillem Jan Palenstijn2008-12-17 19:25:54 +0000
commitdcc81b07e5ee983c77ba8978434cdf7140d85e80 (patch)
treef606935e5bb065f5824032a43c86b9e341871795 /engines
parent3f36b2a15a4b070d4aafbde075658a3713aece37 (diff)
downloadscummvm-rg350-dcc81b07e5ee983c77ba8978434cdf7140d85e80.tar.gz
scummvm-rg350-dcc81b07e5ee983c77ba8978434cdf7140d85e80.tar.bz2
scummvm-rg350-dcc81b07e5ee983c77ba8978434cdf7140d85e80.zip
move necessary code outside of assert
svn-id: r35414
Diffstat (limited to 'engines')
-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)