Skip to content

Commit

Permalink
Fix compile for spcomp 1.11
Browse files Browse the repository at this point in the history
  • Loading branch information
Mikusch committed Mar 5, 2024
1 parent edc2dbb commit c4703bd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions addons/sourcemod/scripting/friendlyfire/convars.sp
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ static void ConVars_AddConVar(const char[] name, const char[] value = "", ConVar

static void ConVars_Enable(const char[] name)
{
int index = g_conVars.FindString(name, ConVarData::name);
int index = g_conVars.FindString(name);
if (index == -1)
return;

Expand Down Expand Up @@ -132,7 +132,7 @@ static void ConVars_Enable(const char[] name)

static void ConVars_Disable(const char[] name)
{
int index = g_conVars.FindString(name, ConVarData::name);
int index = g_conVars.FindString(name);
if (index == -1)
return;

Expand All @@ -157,7 +157,7 @@ static void OnConVarChanged(ConVar convar, const char[] oldValue, const char[] n
char name[COMMAND_MAX_LENGTH];
convar.GetName(name, sizeof(name));

int index = g_conVars.FindString(name, ConVarData::name);
int index = g_conVars.FindString(name);
if (index == -1)
return;

Expand Down

0 comments on commit c4703bd

Please sign in to comment.