mirror of
https://github.com/TES3MP/TES3MP.git
synced 2025-09-28 23:51:09 -04:00
Fix HUD weapon icon when turning from werewolf to normal
The werewolf hand icon remained until the inventory menu was opened.
This commit is contained in:
parent
8bde8d7c11
commit
1cbfcc3910
@ -1878,11 +1878,12 @@ namespace MWWorld
|
|||||||
{
|
{
|
||||||
// Update the GUI only when called on the player
|
// Update the GUI only when called on the player
|
||||||
MWBase::WindowManager* windowManager = MWBase::Environment::get().getWindowManager();
|
MWBase::WindowManager* windowManager = MWBase::Environment::get().getWindowManager();
|
||||||
|
windowManager->unsetSelectedWeapon();
|
||||||
|
|
||||||
if (werewolf)
|
if (werewolf)
|
||||||
{
|
{
|
||||||
windowManager->forceHide(MWGui::GW_Inventory);
|
windowManager->forceHide(MWGui::GW_Inventory);
|
||||||
windowManager->forceHide(MWGui::GW_Magic);
|
windowManager->forceHide(MWGui::GW_Magic);
|
||||||
windowManager->unsetSelectedWeapon();
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user