1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-10 06:39:49 +00:00

exclude player from auto equip

This commit is contained in:
Marc Zinnschlag 2012-04-08 13:01:03 +02:00
parent dcab6737e5
commit ab2a1297b0

View File

@ -17,7 +17,7 @@ namespace MWMechanics
void Actors::updateNpc (const MWWorld::Ptr& ptr, float duration, bool paused) void Actors::updateNpc (const MWWorld::Ptr& ptr, float duration, bool paused)
{ {
if (!paused) if (!paused && ptr.getRefData().getHandle()!="player")
MWWorld::Class::get (ptr).getInventoryStore (ptr).autoEquip ( MWWorld::Class::get (ptr).getInventoryStore (ptr).autoEquip (
MWWorld::Class::get (ptr).getNpcStats (ptr), mEnvironment); MWWorld::Class::get (ptr).getNpcStats (ptr), mEnvironment);
} }