From ec0f5d0ba9518267b5f92812965509a5753875f3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20G=C3=B6ttsche?= Date: Wed, 2 Dec 2020 17:54:53 +0100 Subject: [PATCH] Compare indices not index with pair Fixes always true condition. Found by LGTM.com --- CRT.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRT.c b/CRT.c index 02063552..51fc876b 100644 --- a/CRT.c +++ b/CRT.c @@ -794,7 +794,7 @@ void CRT_setColors(int colorScheme) { for (int i = 0; i < 8; i++) { for (int j = 0; j < 8; j++) { - if (ColorIndex(i, j) != ColorPairGrayBlack) { + if (ColorIndex(i, j) != ColorIndexGrayBlack) { int bg = (colorScheme != COLORSCHEME_BLACKNIGHT) ? (j == 0 ? -1 : j) : j;