From 5cc27252295baa6bd6885a078dc4bef5c52901c6 Mon Sep 17 00:00:00 2001 From: KaidoRen Date: Thu, 30 May 2019 14:02:41 +0500 Subject: [PATCH] The 'atoi' function replaced to 'stoi' --- amxmodx/srvcmd.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/amxmodx/srvcmd.cpp b/amxmodx/srvcmd.cpp index b855a112..536aefec 100755 --- a/amxmodx/srvcmd.cpp +++ b/amxmodx/srvcmd.cpp @@ -9,6 +9,7 @@ #include "amxmodx.h" #include +#include void amx_command() { @@ -71,7 +72,7 @@ void amx_command() } else { - auto id = atoi(CMD_ARGV(2)); + auto id = std::stoi(CMD_ARGV(2)); auto plugin = g_plugins.findPlugin(id); if (plugin && plugin->isValid())