mirror of
https://github.com/TES3MP/TES3MP.git
synced 2025-09-25 22:10:41 -04:00
Merge pull request #2818 from Capostrophic/shield
Fix usage of uninitialized weapon type in equipmentChanged()
This commit is contained in:
commit
8c0674490d
@ -1127,7 +1127,7 @@ void NpcAnimation::equipmentChanged()
|
||||
static const bool shieldSheathing = Settings::Manager::getBool("shield sheathing", "Game");
|
||||
if (shieldSheathing)
|
||||
{
|
||||
int weaptype;
|
||||
int weaptype = ESM::Weapon::None;
|
||||
MWMechanics::getActiveWeapon(mPtr, &weaptype);
|
||||
showCarriedLeft(updateCarriedLeftVisible(weaptype));
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user