diff options
Diffstat (limited to 'sky/rnc_deco.cpp')
-rw-r--r-- | sky/rnc_deco.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sky/rnc_deco.cpp b/sky/rnc_deco.cpp index 03b2a76f79..9523156a7b 100644 --- a/sky/rnc_deco.cpp +++ b/sky/rnc_deco.cpp @@ -75,8 +75,7 @@ uint16 RncDecoder::crcBlock(const uint8 *block, uint32 size) { crc ^= tmp; tmp = (uint8)((crc >> 8) & 0x00FF); crc &= 0x00FF; - crc = crc << 1; - crc = *(uint16 *)&crcTable8[crc]; + crc = *(uint16 *)&crcTable8[crc << 1]; crc ^= tmp; } |