mirror of
				https://github.com/OpenMW/openmw.git
				synced 2025-10-30 02:56:44 +00:00 
			
		
		
		
	Merge pull request #1488 from akortunov/equipfix
AI: Autoequip armor when bound armor spell expires
This commit is contained in:
		
						commit
						b24fd77ea2
					
				
					 1 changed files with 3 additions and 1 deletions
				
			
		|  | @ -71,7 +71,9 @@ void adjustBoundItem (const std::string& item, bool bound, const MWWorld::Ptr& a | ||||||
|     } |     } | ||||||
|     else |     else | ||||||
|     { |     { | ||||||
|         actor.getClass().getContainerStore(actor).remove(item, 1, actor); |         MWWorld::Ptr itemPtr = actor.getClass().getInventoryStore(actor).search(item); | ||||||
|  |         if (!itemPtr.isEmpty()) | ||||||
|  |             actor.getClass().getInventoryStore(actor).remove(itemPtr, 1, actor, true); | ||||||
|     } |     } | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
		Reference in a new issue