Fix Hook constructor not assigning address to a field.

This commit is contained in:
Andrew Gilewsky 2023-01-18 20:21:06 +02:00
parent 7660e2e978
commit 319ec14766

View file

@ -67,7 +67,7 @@ public class Hook<T> : 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<T>(address, detour, callingAssembly);
else