From 44c5be722172e16d7d3a3408091315007006b768 Mon Sep 17 00:00:00 2001 From: Bara Date: Thu, 3 Nov 2022 02:04:15 +0100 Subject: [PATCH] Remove "new" and fix compile error --- sourcemod/scripting/include/system2/legacy.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sourcemod/scripting/include/system2/legacy.inc b/sourcemod/scripting/include/system2/legacy.inc index 7827853..573f4ad 100644 --- a/sourcemod/scripting/include/system2/legacy.inc +++ b/sourcemod/scripting/include/system2/legacy.inc @@ -256,7 +256,7 @@ stock void URLEncode(char[] stringToEncode, int maxlength, char[] safe = "/", bo char sChar[8]; char sReplaceChar[8]; - for (new int i = 1; i < 256; i++) + for (int i = 1; i < 256; i++) { // Skip the '%' double replace ftw.. if (i == 37) @@ -281,4 +281,4 @@ stock void URLEncode(char[] stringToEncode, int maxlength, char[] safe = "/", bo ReplaceString(stringToEncode, maxlength, sChar, sReplaceChar); } } -} \ No newline at end of file +}