mirror of
https://github.com/alliedmodders/amxmodx.git
synced 2025-03-30 06:19:05 +03:00
The 'atoi' function replaced to 'stoi'
This commit is contained in:
parent
32c7e6bf0f
commit
5cc2725229
@ -9,6 +9,7 @@
|
||||
|
||||
#include "amxmodx.h"
|
||||
#include <amxmodx_version.h>
|
||||
#include <string>
|
||||
|
||||
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())
|
||||
|
Loading…
x
Reference in New Issue
Block a user