mirror of
https://github.com/alliedmodders/amxmodx.git
synced 2025-04-01 07:19:06 +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.h"
|
||||||
#include <amxmodx_version.h>
|
#include <amxmodx_version.h>
|
||||||
|
#include <string>
|
||||||
|
|
||||||
void amx_command()
|
void amx_command()
|
||||||
{
|
{
|
||||||
@ -71,7 +72,7 @@ void amx_command()
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
auto id = atoi(CMD_ARGV(2));
|
auto id = std::stoi(CMD_ARGV(2));
|
||||||
auto plugin = g_plugins.findPlugin(id);
|
auto plugin = g_plugins.findPlugin(id);
|
||||||
|
|
||||||
if (plugin && plugin->isValid())
|
if (plugin && plugin->isValid())
|
||||||
|
Loading…
x
Reference in New Issue
Block a user