Skip to content

Commit

Permalink
Fixed IsTome() returning false positives for some items
Browse files Browse the repository at this point in the history
  • Loading branch information
3vcloud committed Jan 11, 2025
1 parent 4edf8b2 commit 2d6cb0a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion GWToolboxdll/Modules/InventoryManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 2d6cb0a

Please sign in to comment.