From 5c2539d560c73b8c8b5679e84675a6ec5401eec5 Mon Sep 17 00:00:00 2001 From: Holger Schemel Date: Thu, 20 Oct 2022 18:17:48 +0200 Subject: [PATCH] removed redundant initialization This issue was found by Cppcheck (static C/C++ code analysis tool). --- src/editor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/editor.c b/src/editor.c index b2bb56b9..4cbaf83a 100644 --- a/src/editor.c +++ b/src/editor.c @@ -12621,7 +12621,7 @@ static int DrawLevelText(int sx, int sy, char letter, int mode) static int start_sx; static int last_sx, last_sy; static boolean typing = FALSE; - int letter_element = EL_CHAR_ASCII0 + letter; + int letter_element; int lx = 0, ly = 0; // map lower case letters to upper case and convert special characters -- 2.34.1