From ff2763785ca2065e0b70a0abef8d6ba98b3f044b Mon Sep 17 00:00:00 2001 From: nytmyr <53322305+nytmyr@users.noreply.github.com> Date: Tue, 4 Feb 2025 16:16:34 -0600 Subject: [PATCH] [Cleanup] Cleanup logic in cursor bag check (#4642) * [Cleanup] Cleanup logic in cursor bag check * oops --- common/shareddb.cpp | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/common/shareddb.cpp b/common/shareddb.cpp index 7ee681ec5..1187d80bb 100644 --- a/common/shareddb.cpp +++ b/common/shareddb.cpp @@ -210,22 +210,18 @@ bool SharedDatabase::SaveCursor( ) ); - int16 i = EQ::invslot::slotCursor; + int16 i = EQ::invbag::CURSOR_BAG_BEGIN; for (auto& it = start; it != end; ++it, i++) { // shouldn't be anything in the queue that indexes this high if (i > EQ::invbag::CURSOR_BAG_END) { break; } - const EQ::ItemInstance* inst = *it; - const int16 use_slot = i == EQ::invslot::slotCursor ? EQ::invslot::slotCursor : i; + const EQ::ItemInstance* inst = *it; + const int16 use_slot = i == EQ::invbag::CURSOR_BAG_BEGIN ? EQ::invslot::slotCursor : i; if (!SaveInventory(char_id, inst, use_slot)) { return false; } - - if (i == EQ::invslot::slotCursor) { - i = EQ::invbag::CURSOR_BAG_BEGIN; - } } return true;