diff options
author | Peter Kohaut | 2019-02-21 20:37:23 +0100 |
---|---|---|
committer | Peter Kohaut | 2019-02-23 11:39:54 +0100 |
commit | f70251819aa2e5e9715a25bf8c4ed26394a164cf (patch) | |
tree | 704615311301f80538c560da831d27962b3ca49a /engines/bladerunner/decompress_lcw.cpp | |
parent | 68f9acad0de7758b1c00524e3ae63572f13463ba (diff) | |
download | scummvm-rg350-f70251819aa2e5e9715a25bf8c4ed26394a164cf.tar.gz scummvm-rg350-f70251819aa2e5e9715a25bf8c4ed26394a164cf.tar.bz2 scummvm-rg350-f70251819aa2e5e9715a25bf8c4ed26394a164cf.zip |
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.
Diffstat (limited to 'engines/bladerunner/decompress_lcw.cpp')
-rw-r--r-- | engines/bladerunner/decompress_lcw.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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); |