Fixed amb1611 - Spy knife critical detour reading from wrong gamedata key
--HG-- branch : sourcemod-1.0.x extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/branches/sourcemod-1.0.x%402040
This commit is contained in:
parent
73888b137d
commit
2341a8e756
@ -207,7 +207,7 @@ bool CriticalHitManager::CreateCriticalKnifeDetour()
|
||||
return false;
|
||||
}
|
||||
|
||||
if (!g_pGameConf->GetOffset("CalcCriticalMeleeBackup", (int *)&(knife_restore.bytes)))
|
||||
if (!g_pGameConf->GetOffset("CalcCriticalKnifeBackup", (int *)&(knife_restore.bytes)))
|
||||
{
|
||||
g_pSM->LogError(myself, "Could not locate CalcCriticalKnifeBackup - Disabling Critical Hit forward");
|
||||
return false;
|
||||
@ -341,7 +341,7 @@ void CriticalHitManager::DisableCriticalDetour()
|
||||
detoured = false;
|
||||
}
|
||||
|
||||
if (melee_callback)
|
||||
if (knife_callback)
|
||||
{
|
||||
/* Remove the patch */
|
||||
ApplyPatch(knife_address, 0, &knife_restore, NULL);
|
||||
|
Loading…
Reference in New Issue
Block a user