From 2d6cb0ac957b93039a392c4f8213a17edb470c5c Mon Sep 17 00:00:00 2001 From: Jon Date: Sat, 11 Jan 2025 22:02:22 +0000 Subject: [PATCH] Fixed IsTome() returning false positives for some items --- GWToolboxdll/Modules/InventoryManager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GWToolboxdll/Modules/InventoryManager.cpp b/GWToolboxdll/Modules/InventoryManager.cpp index 343303253..5a2f598b2 100644 --- a/GWToolboxdll/Modules/InventoryManager.cpp +++ b/GWToolboxdll/Modules/InventoryManager.cpp @@ -2455,7 +2455,7 @@ bool InventoryManager::Item::IsSalvageKit() const bool InventoryManager::Item::IsTome() const { const GW::ItemModifier* mod = GetModifier(0x2788); - const uint32_t use_id = mod ? mod->arg2() : 0; + const uint32_t use_id = mod ? mod->arg() : 0; return use_id > 15 && use_id < 36; }