Skip to content

Commit

Permalink
fix oldkeycopy
Browse files Browse the repository at this point in the history
  • Loading branch information
Apfelwurm committed Oct 3, 2022
1 parent d95df28 commit 3eae90a
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions get5_eventula_apistats/scripting/get5_eventula_apistats.sp
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,14 @@ void ApiInfoChanged(ConVar convar, const char[] oldValue, const char[] newValue)
LogDebug("ApiInfoChanged before setting g_APIURL %s", g_APIURL);
LogDebug("ApiInfoChanged before setting g_APIURLOld %s", g_APIURLOld);

strcopy(g_APIKeyOld, sizeof(g_APIKeyOld), g_APIKey);
strcopy(g_APIURLOld, sizeof(g_APIURLOld), g_APIURL);

if (StrEqual(g_APIKey, "") == false)
{
strcopy(g_APIKeyOld, sizeof(g_APIKeyOld), g_APIKey);
}
if (StrEqual(g_APIURL, "") == false)
{
strcopy(g_APIURLOld, sizeof(g_APIURLOld), g_APIURL);
}
LogDebug("ApiInfoChanged after copy g_APIKey %s", g_APIKey);
LogDebug("ApiInfoChanged after copy g_APIKeyOld %s", g_APIKeyOld);
LogDebug("ApiInfoChanged after copy g_APIURL %s", g_APIURL);
Expand Down

0 comments on commit 3eae90a

Please sign in to comment.