[Client] Add updateInventoryWindow() method to LocalPlayer

pull/529/head
David Cernat 5 years ago
parent 49fa35a516
commit 01804af100

@ -708,7 +708,7 @@ void LocalPlayer::addItems()
} }
} }
MWBase::Environment::get().getWindowManager()->getInventoryWindow()->updateItemView(); updateInventoryWindow();
} }
void LocalPlayer::addSpells() void LocalPlayer::addSpells()
@ -864,6 +864,11 @@ void LocalPlayer::closeInventoryWindows()
MWBase::Environment::get().getWindowManager()->finishDragDrop(); MWBase::Environment::get().getWindowManager()->finishDragDrop();
} }
void LocalPlayer::updateInventoryWindow()
{
MWBase::Environment::get().getWindowManager()->getInventoryWindow()->updateItemView();
}
void LocalPlayer::setCharacter() void LocalPlayer::setCharacter()
{ {
receivedCharacter = true; receivedCharacter = true;

@ -52,6 +52,7 @@ namespace mwmp
void resurrect(); void resurrect();
void closeInventoryWindows(); void closeInventoryWindows();
void updateInventoryWindow();
void setCharacter(); void setCharacter();
void setDynamicStats(); void setDynamicStats();

Loading…
Cancel
Save