1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-31 23:45:32 +00:00

Fix errors remaining from merge with tes3mp-packetexpansion, part 2

This commit is contained in:
David Cernat 2016-10-23 19:32:39 +03:00
parent b06a2f3119
commit 3380c482c0

View file

@ -123,7 +123,7 @@ void ItemFunctions::SendInventory(unsigned short pid) noexcept
Player *player;
GET_PLAYER(pid, player, );
std::swap(player->inventory, player->inventorySendBuffer);
mwmp::Networking::Get().GetController()->GetPacket(ID_GAME_INVENTORY)->Send(player, false);
mwmp::Networking::Get().GetPlayerController()->GetPacket(ID_GAME_INVENTORY)->Send(player, false);
player->inventory = std::move(player->inventorySendBuffer);
player->inventorySendBuffer.items.clear();
}