mirror of
https://github.com/OpenMW/openmw.git
synced 2025-06-20 19:41:36 +00:00
Fix or lockpicks.
This commit is contained in:
parent
766d1efa84
commit
5388c25e64
1 changed files with 2 additions and 2 deletions
|
@ -478,8 +478,8 @@ void NpcAnimation::showWeapons(bool showWeapon)
|
||||||
mWeapon = inv.getSlot(MWWorld::InventoryStore::Slot_CarriedRight);
|
mWeapon = inv.getSlot(MWWorld::InventoryStore::Slot_CarriedRight);
|
||||||
if(mWeapon != inv.end()) // special case for weapons
|
if(mWeapon != inv.end()) // special case for weapons
|
||||||
{
|
{
|
||||||
const ESM::Weapon* weapon = (mWeapon->get<ESM::Weapon>())->mBase;
|
std::string mesh = MWWorld::Class::get(*mWeapon).getModel(*mWeapon);
|
||||||
addOrReplaceIndividualPart(ESM::PRT_Weapon,-1,1,"meshes\\"+weapon->mModel);
|
addOrReplaceIndividualPart(ESM::PRT_Weapon,-1,1,mesh);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue