From d52af801a0ddf7a3dc89c4a44bb85c3cbfe87f84 Mon Sep 17 00:00:00 2001 From: jonschz Date: Sat, 24 May 2025 15:21:26 +0200 Subject: [PATCH] Fix rogue if check --- LEGO1/omni/src/video/flic.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/LEGO1/omni/src/video/flic.cpp b/LEGO1/omni/src/video/flic.cpp index 4f29c801..0f33f31b 100644 --- a/LEGO1/omni/src/video/flic.cpp +++ b/LEGO1/omni/src/video/flic.cpp @@ -391,8 +391,8 @@ void DecodeSS2(LPBITMAPINFOHEADER p_bitmapHeader, BYTE* p_pixelData, BYTE* p_dat if (token >= 0) { goto column_loop; } - // TODO: Can't get this if-check to be quite right. Union type didn't help either - if (token & 0x4000) { + + if ((unsigned short) token & 0x4000) { goto skip_lines; }