1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-16 19:19:56 +00:00

Prevent inventory requests from making LocalPlayer send inventory twice

This commit is contained in:
David Cernat 2016-11-20 03:21:15 +02:00
parent 7fae28ce91
commit 80b40bfb70

View file

@ -291,9 +291,7 @@ void Networking::processPlayerPacket(RakNet::Packet *packet)
{
if (packet->length == myPacket->headerSize())
{
printf("ID_GAME_INVENTORY update only\n");
getLocalPlayer()->updateInventory(true);
getPlayerPacket(ID_GAME_INVENTORY)->Send(getLocalPlayer());
}
else
{