Compare indices not index with pair

Fixes always true condition.

Found by LGTM.com
This commit is contained in:
Christian Göttsche 2020-12-02 17:54:53 +01:00
parent bbac4c2a62
commit ec0f5d0ba9
1 changed files with 1 additions and 1 deletions

2
CRT.c
View File

@ -794,7 +794,7 @@ void CRT_setColors(int colorScheme) {
for (int i = 0; i < 8; i++) { for (int i = 0; i < 8; i++) {
for (int j = 0; j < 8; j++) { for (int j = 0; j < 8; j++) {
if (ColorIndex(i, j) != ColorPairGrayBlack) { if (ColorIndex(i, j) != ColorIndexGrayBlack) {
int bg = (colorScheme != COLORSCHEME_BLACKNIGHT) int bg = (colorScheme != COLORSCHEME_BLACKNIGHT)
? (j == 0 ? -1 : j) ? (j == 0 ? -1 : j)
: j; : j;