DetourGenerator: Fix wrong mnemonic check

This commit is contained in:
ghorsington committed 2021-01-26 22:58:23 +02:00
1 parent ff4e1b7c7f
commit 3b64e9bb15
1 file changed
+1 -1
+1 -1
View File
@@ -134,7 +134,7 @@ namespace BepInEx.IL2CPP
if (readOverflowArea)
{
if (instr.Mnemonic != Mnemonic.Int && instr.Mnemonic != Mnemonic.Nop)
if (instr.Mnemonic != Mnemonic.Int3 && instr.Mnemonic != Mnemonic.Nop)
throw new Exception("Function is too short to hook");
continue;
}