Skip to content

Commit

Permalink
Fix compile warnings for latest SM 1.12 version
Browse files Browse the repository at this point in the history
  • Loading branch information
FortyTwoFortyTwo committed Apr 8, 2024
1 parent 5a358b8 commit bd2ec8c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 3 additions & 1 deletion scripting/vscript/execute.sp
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,9 @@ ScriptStatus_t Execute_Execute(VScriptExecute aExecute)
execute.nReturn.nType = pReturn.nType;
Execute_SetInfo(aExecute, execute);

delete hArgs, pReturn;
delete hArgs;
delete pReturn;

for (int i = 0; i < iNumParams; i++)
delete hValue[i];

Expand Down
6 changes: 4 additions & 2 deletions scripting/vscript/hscript.sp
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,8 @@ int HScript_GetKey(HSCRIPT pHScript, int iIterator, char[] sKey, int iLength, fi
nField = pValue.nType;
}

delete pKey, pValue;
delete pKey;
delete pValue;

return iIterator;
}
Expand Down Expand Up @@ -125,7 +126,8 @@ ScriptVariant_t HScript_NativeGetValueEx(bool bError)
return pValue;
}

delete pKey, pValue;
delete pKey;
delete pValue;

if (bError)
ThrowNativeError(SP_ERROR_NATIVE, "Key name '%s' don't exist", sKey);
Expand Down

0 comments on commit bd2ec8c

Please sign in to comment.