mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-02-04 12:39:55 +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)
|
// Equipping weapons is handled by AiCombat. Anything else (lockpicks, probes) can't be used by NPCs anyway (yet)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
if (iter.getType() == MWWorld::ContainerStore::Type_Weapon)
|
||||||
|
continue;
|
||||||
|
|
||||||
if (slots_.at (*iter2)!=end())
|
if (slots_.at (*iter2)!=end())
|
||||||
{
|
{
|
||||||
Ptr old = *slots_.at (*iter2);
|
Ptr old = *slots_.at (*iter2);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user