From 3991cb11654b4266a117269be64fd02a37098850 Mon Sep 17 00:00:00 2001 From: KaidoRen Date: Wed, 15 May 2019 08:19:06 +0500 Subject: [PATCH] Revert "Creating a variable inside an if statement (C++17)" This reverts commit 835e0bc6c413f11b1bbf964daea87b57f653f5d7. --- amxmodx/srvcmd.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/amxmodx/srvcmd.cpp b/amxmodx/srvcmd.cpp index 91e393f4..183dfda0 100755 --- a/amxmodx/srvcmd.cpp +++ b/amxmodx/srvcmd.cpp @@ -84,7 +84,8 @@ void amx_command() print_srvconsole(" URL: %s\n", plugin->getUrl()); } - if (auto description = plugin->getDescription(); description[0]) + auto description = plugin->getDescription(); + if (description[0] != '\0') { print_srvconsole(" Description: %s\n", description); }