forked from mirror/openmw-tes3mp
Don't use autoEquip on player-controlled NPCs
This commit is contained in:
parent
47ebd24b4a
commit
94c5d6d2f9
1 changed files with 6 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue