[Server] Send correct packet for inventory changes

new-script-api
David Cernat 7 years ago
parent 4cc0216e0a
commit a3e2ab4d4e

@ -185,7 +185,7 @@ void Player::update()
if (inventory.inventoryChangeType() != 0)
{
auto packet = plPCtrl->GetPacket(ID_PLAYER_EQUIPMENT);
auto packet = plPCtrl->GetPacket(ID_PLAYER_INVENTORY);
packet->setPlayer(this);
packet->Send(/*toOthers*/ false);
inventory.resetInventoryFlag();

Loading…
Cancel
Save