From 2d583aa83a180f0c711c49c7ffb7466ae038b918 Mon Sep 17 00:00:00 2001 From: Arkshine Date: Tue, 28 Jul 2015 15:41:16 +0200 Subject: [PATCH] Fix a ML parser crash on key with an associated empty value --- amxmodx/CLang.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/amxmodx/CLang.cpp b/amxmodx/CLang.cpp index 65bcf762..f8d1c84a 100755 --- a/amxmodx/CLang.cpp +++ b/amxmodx/CLang.cpp @@ -393,7 +393,7 @@ bool CLangMngr::ReadINI_KeyValue(const char *key, const char *value, bool invali { Data.lastKey = key; - if (colons_token || equal_token) + if (colons_token || (equal_token && value)) { int iKey = GetKeyEntry(key);