Merge pull request #2818 from Capostrophic/shield

Fix usage of uninitialized weapon type in equipmentChanged()
pull/2708/head
Roman Siromakha 5 years ago committed by GitHub
commit 8c0674490d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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…
Cancel
Save