mirror of
https://github.com/luanti-org/luanti.git
synced 2025-07-02 16:38:41 +00:00
Fix detach inventory serialisation (#8331)
This commit is contained in:
parent
82c6363559
commit
ac86d04784
2 changed files with 8 additions and 3 deletions
|
@ -895,8 +895,10 @@ void Client::handleCommand_DetachedInventory(NetworkPacket* pkt)
|
|||
inv = inv_it->second;
|
||||
}
|
||||
|
||||
std::string contents;
|
||||
*pkt >> contents;
|
||||
u16 ignore;
|
||||
*pkt >> ignore; // this used to be the length of the following string, ignore it
|
||||
|
||||
std::string contents = pkt->getRemainingString();
|
||||
std::istringstream is(contents, std::ios::binary);
|
||||
inv->deSerialize(is);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue