diff --git a/apps/openmw-mp/Script/Functions/Items.cpp b/apps/openmw-mp/Script/Functions/Items.cpp index 50e581147..593d953c7 100644 --- a/apps/openmw-mp/Script/Functions/Items.cpp +++ b/apps/openmw-mp/Script/Functions/Items.cpp @@ -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(); }