CloseHandle -> delete
This commit is contained in:
@@ -61,19 +61,19 @@ public void OnPluginStart()
|
||||
}
|
||||
if(GameConfGetOffset(hGameConf, "GetSlot") == -1)
|
||||
{
|
||||
CloseHandle(hGameConf);
|
||||
delete hGameConf;
|
||||
SetFailState("Couldn't get GetSlot offset from game config!");
|
||||
return;
|
||||
}
|
||||
if(GameConfGetOffset(hGameConf, "BumpWeapon") == -1)
|
||||
{
|
||||
CloseHandle(hGameConf);
|
||||
delete hGameConf;
|
||||
SetFailState("Couldn't get BumpWeapon offset from game config!");
|
||||
return;
|
||||
}
|
||||
if(GameConfGetOffset(hGameConf, "OnPickedUp") == -1)
|
||||
{
|
||||
CloseHandle(hGameConf);
|
||||
delete hGameConf;
|
||||
SetFailState("Couldn't get OnPickedUp offset from game config!");
|
||||
return;
|
||||
}
|
||||
@@ -82,7 +82,7 @@ public void OnPluginStart()
|
||||
StartPrepSDKCall(SDKCall_Entity);
|
||||
if(!PrepSDKCall_SetFromConf(hGameConf, SDKConf_Virtual, "GetSlot"))
|
||||
{
|
||||
CloseHandle(hGameConf);
|
||||
delete hGameConf;
|
||||
SetFailState("PrepSDKCall_SetFromConf(hGameConf, SDKConf_Virtual, \"GetSlot\" failed!");
|
||||
return;
|
||||
}
|
||||
@@ -93,7 +93,7 @@ public void OnPluginStart()
|
||||
StartPrepSDKCall(SDKCall_Player);
|
||||
if(!PrepSDKCall_SetFromConf(hGameConf, SDKConf_Virtual, "BumpWeapon"))
|
||||
{
|
||||
CloseHandle(hGameConf);
|
||||
delete hGameConf;
|
||||
SetFailState("PrepSDKCall_SetFromConf(hGameConf, SDKConf_Virtual, \"BumpWeapon\" failed!");
|
||||
return;
|
||||
}
|
||||
@@ -105,7 +105,7 @@ public void OnPluginStart()
|
||||
StartPrepSDKCall(SDKCall_Entity);
|
||||
if(!PrepSDKCall_SetFromConf(hGameConf, SDKConf_Virtual, "OnPickedUp"))
|
||||
{
|
||||
CloseHandle(hGameConf);
|
||||
delete hGameConf;
|
||||
SetFailState("PrepSDKCall_SetFromConf(hGameConf, SDKConf_Virtual, \"OnPickedUp\" failed!");
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user