From f70251819aa2e5e9715a25bf8c4ed26394a164cf Mon Sep 17 00:00:00 2001 From: Peter Kohaut Date: Thu, 21 Feb 2019 20:37:23 +0100 Subject: BLADERUNNER: Fixed CppCheck warnings Rat interaction at UG15 is now working exactly as in the original game. Before the bridge didn't break if player shot the rat on it. --- engines/bladerunner/decompress_lcw.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'engines/bladerunner/decompress_lcw.cpp') diff --git a/engines/bladerunner/decompress_lcw.cpp b/engines/bladerunner/decompress_lcw.cpp index 9fc4640d1b..7f96fa8f7c 100644 --- a/engines/bladerunner/decompress_lcw.cpp +++ b/engines/bladerunner/decompress_lcw.cpp @@ -28,7 +28,7 @@ namespace BladeRunner { uint32 decompress_lcw(uint8 *inBuf, uint32 inLen, uint8 *outBuf, uint32 outLen) { int version = 1; - int count, i, color, pos, relpos, out_remain; + int count, i, color, pos, relpos; uint8 *src = inBuf; uint8 *dst = outBuf; @@ -40,7 +40,7 @@ uint32 decompress_lcw(uint8 *inBuf, uint32 inLen, uint8 *outBuf, uint32 outLen) } while (src < inBuf + inLen && dst < outEnd && src[0] != 0x80) { - out_remain = (int)(outEnd - dst); + int out_remain = (int)(outEnd - dst); if (src[0] == 0xff) { // 0b11111111 count = src[1] | (src[2] << 8); -- cgit v1.2.3