forked from UNLOZE/sm-plugins
CloseHandle -> delete
This commit is contained in:
@@ -33,14 +33,14 @@ public void OnPluginStart()
|
||||
int iOffset;
|
||||
if ((iOffset = GameConfGetOffset(hGameConf, "SelectSpawnPoint")) == -1)
|
||||
{
|
||||
CloseHandle(hGameConf);
|
||||
delete hGameConf;
|
||||
SetFailState("GameConfGetOffset(hGameConf, \"SelectSpawnPoint\") failed!");
|
||||
return;
|
||||
}
|
||||
|
||||
if ((hSelectSpawnPoint = DHookCreate(iOffset, HookType_Entity, ReturnType_CBaseEntity, ThisPointer_CBaseEntity, OnPlayerSelectSpawnPoint)) == INVALID_HANDLE)
|
||||
{
|
||||
CloseHandle(hGameConf);
|
||||
delete hGameConf;
|
||||
SetFailState("DHookCreate(iOffset, HookType_Entity, ReturnType_CBaseEntity, ThisPointer_CBaseEntity, OnPlayerSelectSpawnPoint) failed!");
|
||||
return;
|
||||
}
|
||||
@@ -54,7 +54,7 @@ public void OnPluginStart()
|
||||
}
|
||||
}
|
||||
|
||||
CloseHandle(hGameConf);
|
||||
delete hGameConf;
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user