diff options
-rw-r--r-- | graphics/smk_player.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/graphics/smk_player.cpp b/graphics/smk_player.cpp index c066d945db..c1295e25e0 100644 --- a/graphics/smk_player.cpp +++ b/graphics/smk_player.cpp @@ -772,7 +772,7 @@ void SMKPlayer::queueCompressedBuffer(byte *buffer, int bufferSize, int unpacked cur = hi + lo; // adding takes care of possible overflows *curPointer++ = cur & 0xFF; // low curPos++; - *curPointer++ = cur & 0xFF00; // high + *curPointer++ = (cur >> 8) & 0xFF; // high curPos++; } @@ -782,7 +782,7 @@ void SMKPlayer::queueCompressedBuffer(byte *buffer, int bufferSize, int unpacked cur = hi + lo; // adding takes care of possible overflows *curPointer++ = cur & 0xFF; // low curPos++; - *curPointer++ = cur & 0xFF00; // high + *curPointer++ = (cur >> 8) & 0xFF; // high curPos++; } } |