mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-12 09:31:30 +00:00
Merge pull request #853 from dencelle/master
fixed opcode for deleteing a item out of a player's inventory slot
This commit is contained in:
commit
c3e10a7409
@ -972,8 +972,8 @@ void Client::DeleteItemInInventory(int16 slot_id, int8 quantity, bool client_upd
|
|||||||
safe_delete(outapp);
|
safe_delete(outapp);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
outapp = new EQApplicationPacket(OP_MoveItem, sizeof(MoveItem_Struct));
|
outapp = new EQApplicationPacket(OP_DeleteItem, sizeof(DeleteItem_Struct));
|
||||||
MoveItem_Struct* delitem = (MoveItem_Struct*)outapp->pBuffer;
|
DeleteItem_Struct* delitem = (DeleteItem_Struct*)outapp->pBuffer;
|
||||||
delitem->from_slot = slot_id;
|
delitem->from_slot = slot_id;
|
||||||
delitem->to_slot = 0xFFFFFFFF;
|
delitem->to_slot = 0xFFFFFFFF;
|
||||||
delitem->number_in_stack = 0xFFFFFFFF;
|
delitem->number_in_stack = 0xFFFFFFFF;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user