mirror of
https://github.com/OpenMW/openmw.git
synced 2025-02-23 03:09:41 +00:00
Fix usage of uninitialized weapon type in equipmentChanged()
This commit is contained in:
parent
eeb13ad8a3
commit
87ba0bb0e0
1 changed files with 1 additions and 1 deletions
|
@ -1127,7 +1127,7 @@ void NpcAnimation::equipmentChanged()
|
||||||
static const bool shieldSheathing = Settings::Manager::getBool("shield sheathing", "Game");
|
static const bool shieldSheathing = Settings::Manager::getBool("shield sheathing", "Game");
|
||||||
if (shieldSheathing)
|
if (shieldSheathing)
|
||||||
{
|
{
|
||||||
int weaptype;
|
int weaptype = ESM::Weapon::None;
|
||||||
MWMechanics::getActiveWeapon(mPtr, &weaptype);
|
MWMechanics::getActiveWeapon(mPtr, &weaptype);
|
||||||
showCarriedLeft(updateCarriedLeftVisible(weaptype));
|
showCarriedLeft(updateCarriedLeftVisible(weaptype));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue