diff options
author | Borja Lorente | 2016-08-17 17:19:05 +0200 |
---|---|---|
committer | Borja Lorente | 2016-08-19 16:30:25 +0200 |
commit | 69f2302a1adb9ead458e38a45429477eac2b6ce4 (patch) | |
tree | f036a4071033ba945337b55455951827a25b4dd1 /engines/macventure/image.cpp | |
parent | 97af2b6e14ab25e37aa0c3d226c0264ac2a8ec12 (diff) | |
download | scummvm-rg350-69f2302a1adb9ead458e38a45429477eac2b6ce4.tar.gz scummvm-rg350-69f2302a1adb9ead458e38a45429477eac2b6ce4.tar.bz2 scummvm-rg350-69f2302a1adb9ead458e38a45429477eac2b6ce4.zip |
MACVENTURE: Remove JavaScript constructs
Diffstat (limited to 'engines/macventure/image.cpp')
-rw-r--r-- | engines/macventure/image.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/macventure/image.cpp b/engines/macventure/image.cpp index f0146e344a..aeb5a501a8 100644 --- a/engines/macventure/image.cpp +++ b/engines/macventure/image.cpp @@ -187,7 +187,7 @@ void ImageAsset::decodePPIC3(Common::BitStream &stream, Common::Array<byte> &dat v = stream.getBits(bits); while ((bits = loadBits[load++]) != 0xFF) { huff.symbols[loadBits[load++]] = v % bits; - v = (v / bits) | 0; + v = (bits != 0) ? (v / bits) : 0; } huff.symbols[loadBits[load++]] = v; } |