1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-03-14 01:19:59 +00:00

Fix usage of uninitialized weapon type in equipmentChanged()

This commit is contained in:
Capostrophic 2020-05-01 16:22:07 +03:00 committed by Bret Curtis
parent a769cbd6f8
commit 7dedf05f05

View File

@ -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));
}