From 77de74a0893cacfe5ba5be0790925a84196176c0 Mon Sep 17 00:00:00 2001 From: Kinglykrab Date: Fri, 25 Oct 2024 00:45:32 -0400 Subject: [PATCH] Update shareddb.cpp --- common/shareddb.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/common/shareddb.cpp b/common/shareddb.cpp index 0bb452cfe..a052c8652 100644 --- a/common/shareddb.cpp +++ b/common/shareddb.cpp @@ -710,7 +710,7 @@ bool SharedDatabase::GetInventory(uint32 char_id, EQ::InventoryProfile* inv) row.augment_six }; - if (EQ::ValueWithin(slot_id, EQ::invslot::POSSESSIONS_END, EQ::invslot::POSSESSIONS_BEGIN)) { + if (EQ::ValueWithin(slot_id, EQ::invslot::POSSESSIONS_BEGIN, EQ::invslot::POSSESSIONS_END)) { // Titanium thru UF check if (((static_cast(1) << slot_id) & pmask) == 0) { cv_conflict = true; @@ -723,7 +723,7 @@ bool SharedDatabase::GetInventory(uint32 char_id, EQ::InventoryProfile* inv) cv_conflict = true; continue; } - } else if (EQ::ValueWithin(slot_id, EQ::invslot::BANK_END, EQ::invslot::BANK_BEGIN)) { + } else if (EQ::ValueWithin(slot_id, EQ::invslot::BANK_BEGIN, EQ::invslot::BANK_END)) { // Titanium check if ((slot_id - EQ::invslot::BANK_BEGIN) >= bank_size) { cv_conflict = true; @@ -804,7 +804,7 @@ bool SharedDatabase::GetInventory(uint32 char_id, EQ::InventoryProfile* inv) } int16 put_slot_id; - if (slot_id > EQ::invbag::TRADE_BAGS_END) { + if (EQ::ValueWithin(slot_id, EQ::invbag::CURSOR_BAG_BEGIN, EQ::invbag::CURSOR_BAG_END) || slot_id == EQ::invslot::slotCursor) { put_slot_id = inv->PushCursor(*inst); } else { put_slot_id = inv->PutItem(slot_id, *inst);