From fa41dab13e681ebaa139d7eb2f987f2426755c21 Mon Sep 17 00:00:00 2001 From: Martin Michelsen Date: Wed, 16 Oct 2019 22:31:52 -0700 Subject: [PATCH] fix bug in item identifiers --- Player.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Player.cc b/Player.cc index e18f36be..6a1618bb 100644 --- a/Player.cc +++ b/Player.cc @@ -407,7 +407,7 @@ static const unordered_map combine_item_to_max({ const uint32_t meseta_identifier = 0x00000004; uint32_t ItemData::primary_identifier() const { - return (this->item_data1[0] << 16) || (this->item_data1[1] << 8) | this->item_data1[2]; + return (this->item_data1[0] << 16) | (this->item_data1[1] << 8) | this->item_data1[2]; } PlayerBankItem PlayerInventoryItem::to_bank_item() const {