From c6b0db069e561520b0ab1c5561c95a1cffd99698 Mon Sep 17 00:00:00 2001 From: Kaz Wolfe Date: Tue, 12 Nov 2024 16:07:28 -0800 Subject: [PATCH] fix: InventoryItem#Copy is a vfunc now --- Dalamud/Game/Gui/ChatGui.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dalamud/Game/Gui/ChatGui.cs b/Dalamud/Game/Gui/ChatGui.cs index 36e27995d..fefc82790 100644 --- a/Dalamud/Game/Gui/ChatGui.cs +++ b/Dalamud/Game/Gui/ChatGui.cs @@ -51,7 +51,7 @@ internal sealed unsafe class ChatGui : IInternalDisposableService, IChatGui private ChatGui() { this.printMessageHook = Hook.FromAddress(RaptureLogModule.Addresses.PrintMessage.Value, this.HandlePrintMessageDetour); - this.inventoryItemCopyHook = Hook.FromAddress(InventoryItem.Addresses.Copy.Value, this.InventoryItemCopyDetour); + this.inventoryItemCopyHook = Hook.FromAddress((nint)InventoryItem.StaticVirtualTablePointer->Copy, this.InventoryItemCopyDetour); this.handleLinkClickHook = Hook.FromAddress(LogViewer.Addresses.HandleLinkClick.Value, this.HandleLinkClickDetour); this.printMessageHook.Enable();