Skip to content

Commit

Permalink
Unhook inventory manager on terminate
Browse files Browse the repository at this point in the history
  • Loading branch information
3vcloud committed May 17, 2024
1 parent 4ea549e commit 549165d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions GWToolboxdll/Modules/InventoryManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -910,6 +910,10 @@ void InventoryManager::Terminate()
{
ToolboxUIElement::Terminate();
ClearPotentialItems();
GW::Items::RemoveItemClickCallback(&ItemClick_Entry);
GW::UI::RemoveUIMessageCallback(&ItemClick_Entry);
GW::Trade::RemoveOfferItemCallback(&on_offer_item_hook);
GW::Hook::RemoveHook(AddItemRowToWindow_Func);
}

// Hide unsellable items from merchant
Expand Down

0 comments on commit 549165d

Please sign in to comment.