From 5388c25e648cb3af79b785637c86bb9cd8d0ae7e Mon Sep 17 00:00:00 2001 From: gus Date: Sun, 28 Apr 2013 11:55:50 +0100 Subject: [PATCH] Fix or lockpicks. --- apps/openmw/mwrender/npcanimation.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/openmw/mwrender/npcanimation.cpp b/apps/openmw/mwrender/npcanimation.cpp index 09d4546bc..d6bc22cc0 100644 --- a/apps/openmw/mwrender/npcanimation.cpp +++ b/apps/openmw/mwrender/npcanimation.cpp @@ -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())->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