Fixed amb1611 - Spy knife critical detour reading from wrong gamedata key

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%402041
This commit is contained in:
Matt Woodrow 2008-04-12 00:58:34 +00:00
parent c473d75d3d
commit 75a77c1925

View File

@ -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);