1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-19 21:23:52 +00:00

Fix usage of uninitialized weapon type in equipmentChanged()

This commit is contained in:
Capostrophic 2020-05-01 16:22:07 +03:00
parent eeb13ad8a3
commit 87ba0bb0e0

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