From 802c9b1b05d478861db9d1f9af4188527ee735ed Mon Sep 17 00:00:00 2001 From: Herman Semenov Date: Wed, 13 Sep 2023 21:11:23 +0000 Subject: [PATCH] Fixed bug with hexadecimal read number in botlib (#1161) --- codemp/botlib/l_script.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/codemp/botlib/l_script.cpp b/codemp/botlib/l_script.cpp index 8be425b0c8..ab49c8c62b 100644 --- a/codemp/botlib/l_script.cpp +++ b/codemp/botlib/l_script.cpp @@ -652,7 +652,7 @@ int PS_ReadNumber(script_t *script, token_t *token) //hexadecimal while((c >= '0' && c <= '9') || (c >= 'a' && c <= 'f') || - (c >= 'A' && c <= 'A')) + (c >= 'A' && c <= 'F')) { token->string[len++] = *script->script_p++; if (len >= MAX_TOKEN)