Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
Pospelove committed Feb 14, 2025
1 parent deea7dc commit a45548a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions skymp5-server/cpp/server_guest_lib/MpObjectReference.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1785,9 +1785,10 @@ void MpObjectReference::SendInventoryUpdate()
if (actor) {
std::string msg;
msg += Networking::MinPacketId;
msg += nlohmann::json{ { "inventory", actor->GetInventory().ToJson() },
{ "type", "setInventory" } }
.dump();
msg += nlohmann::json{
{ "inventory", actor->GetInventory().ToJson() },
{ "type", "setInventory" }
}.dump();
actor->SendToUserDeferred(msg.data(), msg.size(), true,
kChannelSetInventory, true);
}
Expand Down

0 comments on commit a45548a

Please sign in to comment.