From 9165b12d78a13a7f4f3f1cf9c67cbf9fb9f52604 Mon Sep 17 00:00:00 2001 From: David Cernat Date: Mon, 26 Mar 2018 10:01:26 +0300 Subject: [PATCH] [Client] Update inventory views when receiving inventory or equipment --- apps/openmw/mwmp/LocalPlayer.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/apps/openmw/mwmp/LocalPlayer.cpp b/apps/openmw/mwmp/LocalPlayer.cpp index 28439a773..15ffd0707 100644 --- a/apps/openmw/mwmp/LocalPlayer.cpp +++ b/apps/openmw/mwmp/LocalPlayer.cpp @@ -694,6 +694,8 @@ void LocalPlayer::addItems() LOG_APPEND(Log::LOG_INFO, "- Ignored addition of invalid inventory item %s", item.refId.c_str()); } } + + MWBase::Environment::get().getWindowManager()->getInventoryWindow()->updateItemView(); } void LocalPlayer::addSpells() @@ -1079,6 +1081,8 @@ void LocalPlayer::setEquipment() else ptrInventory.unequipSlot(slot, ptrPlayer); } + + MWBase::Environment::get().getWindowManager()->getInventoryWindow()->updatePlayer(); } void LocalPlayer::setInventory()