diff options
author | Christian Göttsche <cgzones@googlemail.com> | 2020-12-02 17:54:53 +0100 |
---|---|---|
committer | Christian Göttsche <cgzones@googlemail.com> | 2020-12-02 17:54:53 +0100 |
commit | ec0f5d0ba9518267b5f92812965509a5753875f3 (patch) | |
tree | ca53a8edc18a1b7be4912920853165ad47163f24 | |
parent | bbac4c2a62471f52400c570cb4a4860b5c8f4b5e (diff) |
Compare indices not index with pair
Fixes always true condition.
Found by LGTM.com
-rw-r--r-- | CRT.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |