EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   Development::Server Code Submissions (https://www.eqemulator.org/forums/forumdisplay.php?f=669)
-   -   fix for item missing when trading (https://www.eqemulator.org/forums/showthread.php?t=28163)

tsowl 05-09-2009 09:02 AM

fix for item missing when trading
 
If your inventory overflow when trading, and items go to cursor, they will disappear except the last one.

zone/inventory.cpp
Code:

bool Client::PutItemInInventory(sint16 slot_id, const ItemInst& inst, bool client_update)
{
        mlog(INVENTORY__SLOTS, "Putting item %s (%d) into slot %d", inst.GetItem()->Name, inst.GetItem()->ID, slot_id);
-        m_inv.PutItem(slot_id, inst);
+        if (slot_id==SLOT_CURSOR) {
+                return PushItemOnCursor(inst,client_update);
+        }
+        else
+                m_inv.PutItem(slot_id, inst);



All times are GMT -4. The time now is 08:24 PM.

Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.