mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-12 01:11:29 +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);
|
||||
}
|
||||
else {
|
||||
outapp = new EQApplicationPacket(OP_MoveItem, sizeof(MoveItem_Struct));
|
||||
MoveItem_Struct* delitem = (MoveItem_Struct*)outapp->pBuffer;
|
||||
outapp = new EQApplicationPacket(OP_DeleteItem, sizeof(DeleteItem_Struct));
|
||||
DeleteItem_Struct* delitem = (DeleteItem_Struct*)outapp->pBuffer;
|
||||
delitem->from_slot = slot_id;
|
||||
delitem->to_slot = 0xFFFFFFFF;
|
||||
delitem->number_in_stack = 0xFFFFFFFF;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user