Don't use autoEquip on player-controlled NPCs

This commit is contained in:
David Cernat 2016-10-24 11:15:09 +03:00
parent 47ebd24b4a
commit 94c5d6d2f9

View file

@ -232,6 +232,12 @@ bool MWWorld::InventoryStore::canActorAutoEquip(const MWWorld::Ptr& actor, const
return false;
}
// tes3mp needs player-controlled NPCs to wear whatever their players are
// actually wearing, so a condition has been added that should return
// false only for them
else if (!actor.getBase()->canChangeCell)
return false;
return true;
}