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

pull/112/merge
David Cernat 8 years ago
parent b06a2f3119
commit 3380c482c0

@ -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();
}

Loading…
Cancel
Save