mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-12 03:36:32 +00:00
Don't auto-equip ammunition (Fixes #3401)
This commit is contained in:
parent
18897348d7
commit
3f1df4caa6
@ -255,6 +255,9 @@ void MWWorld::InventoryStore::autoEquip (const MWWorld::Ptr& actor)
|
||||
// Equipping weapons is handled by AiCombat. Anything else (lockpicks, probes) can't be used by NPCs anyway (yet)
|
||||
continue;
|
||||
|
||||
if (iter.getType() == MWWorld::ContainerStore::Type_Weapon)
|
||||
continue;
|
||||
|
||||
if (slots_.at (*iter2)!=end())
|
||||
{
|
||||
Ptr old = *slots_.at (*iter2);
|
||||
|
Loading…
Reference in New Issue
Block a user