diff --git a/romwrapper/crc.js b/romwrapper/crc.js index e2f7fdd..cdfc820 100644 --- a/romwrapper/crc.js +++ b/romwrapper/crc.js @@ -60,8 +60,8 @@ const crc_table = [ function gen_table() { let crc = 0; let poly = 0; + let crc; - poly = 0xEDB88320; for (let i = 0; i < 256; i++) { crc = i; for (let j = 8; j > 0; j--) { @@ -192,4 +192,4 @@ function recalcCRC(buffer) { } return crc; -} \ No newline at end of file +}