From 319ec14766a97279240b7fb37f43681a1adecc28 Mon Sep 17 00:00:00 2001 From: Andrew Gilewsky Date: Wed, 18 Jan 2023 20:21:06 +0200 Subject: [PATCH] Fix Hook constructor not assigning address to a field. --- Dalamud/Hooking/Hook.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dalamud/Hooking/Hook.cs b/Dalamud/Hooking/Hook.cs index 6e1fa24f2..74b9e6384 100644 --- a/Dalamud/Hooking/Hook.cs +++ b/Dalamud/Hooking/Hook.cs @@ -67,7 +67,7 @@ public class Hook : IDisposable, IDalamudHook where T : Delegate if (EnvironmentConfiguration.DalamudForceMinHook) useMinHook = true; - address = HookManager.FollowJmp(address); + this.address = address = HookManager.FollowJmp(address); if (useMinHook) this.compatHookImpl = new MinHookHook(address, detour, callingAssembly); else