aboutsummaryrefslogtreecommitdiff
path: root/engines/bladerunner/decompress_lcw.cpp
diff options
context:
space:
mode:
authorPeter Kohaut2019-02-21 20:37:23 +0100
committerPeter Kohaut2019-02-23 11:39:54 +0100
commitf70251819aa2e5e9715a25bf8c4ed26394a164cf (patch)
tree704615311301f80538c560da831d27962b3ca49a /engines/bladerunner/decompress_lcw.cpp
parent68f9acad0de7758b1c00524e3ae63572f13463ba (diff)
downloadscummvm-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.cpp4
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);