mirror of
https://github.com/alliedmodders/amxmodx.git
synced 2025-04-09 19:20:09 +03:00
Revert "Creating a variable inside an if statement (C++17)"
This reverts commit b2c1e7c77576c02a00c8c3f103457000d3298ceb.
This commit is contained in:
parent
3991cb1165
commit
0f5cf26270
@ -72,8 +72,9 @@ void amx_command()
|
||||
else
|
||||
{
|
||||
auto id = atoi(CMD_ARGV(2));
|
||||
auto plugin = g_plugins.findPlugin(id);
|
||||
|
||||
if (auto plugin = g_plugins.findPlugin(id); plugin && plugin->isValid())
|
||||
if (plugin && plugin->isValid())
|
||||
{
|
||||
print_srvconsole(" Name: %s\n", plugin->getTitle());
|
||||
print_srvconsole(" Version: %s\n", plugin->getVersion());
|
||||
|
Loading…
x
Reference in New Issue
Block a user