mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-19 23:53:52 +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);
|
||||
if(mWeapon != inv.end()) // special case for weapons
|
||||
{
|
||||
const ESM::Weapon* weapon = (mWeapon->get<ESM::Weapon>())->mBase;
|
||||
addOrReplaceIndividualPart(ESM::PRT_Weapon,-1,1,"meshes\\"+weapon->mModel);
|
||||
std::string mesh = MWWorld::Class::get(*mWeapon).getModel(*mWeapon);
|
||||
addOrReplaceIndividualPart(ESM::PRT_Weapon,-1,1,mesh);
|
||||
}
|
||||
}
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue