aboutsummaryrefslogtreecommitdiff
path: root/engines/glk/magnetic/magnetic.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/glk/magnetic/magnetic.cpp')
-rw-r--r--engines/glk/magnetic/magnetic.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/glk/magnetic/magnetic.cpp b/engines/glk/magnetic/magnetic.cpp
index 588b66ee6f..581d246acf 100644
--- a/engines/glk/magnetic/magnetic.cpp
+++ b/engines/glk/magnetic/magnetic.cpp
@@ -79,7 +79,7 @@ Magnetic::Magnetic(OSystem *syst, const GlkGameDescription &gameDesc) : GlkAPI(s
undo_stat[0] = undo_stat[1] = 0;
Common::fill(&buffer[0], &buffer[80], 0);
Common::fill(&filename[0], &filename[256], 0);
- Common::fill(&crc_table[0], &crc_table[BYTE_MAX + 1], 0);
+ Common::fill(&crc_table[0], &crc_table[BYTE_MAX_VAL + 1], 0);
#ifndef NO_ANIMATION
Common::fill(&pos_table_count[0], &pos_table_count[MAX_POSITIONS], 0);
@@ -131,7 +131,7 @@ void Magnetic::initializeCRC() {
const glui32 GMS_CRC_POLYNOMIAL = 0xedb88320;
uint32 crc;
- for (uint index = 0; index < BYTE_MAX + 1; ++index) {
+ for (uint index = 0; index < BYTE_MAX_VAL + 1; ++index) {
int bit;
crc = index;