mirror of
https://github.com/TES3MP/TES3MP.git
synced 2025-09-29 16:11:37 -04:00
Don't use autoEquip on player-controlled NPCs
This commit is contained in:
parent
47ebd24b4a
commit
94c5d6d2f9
@ -232,6 +232,12 @@ bool MWWorld::InventoryStore::canActorAutoEquip(const MWWorld::Ptr& actor, const
|
|||||||
return false;
|
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;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user