mirror of
				https://github.com/OpenMW/openmw.git
				synced 2025-10-31 20:26:43 +00:00 
			
		
		
		
	Add missing hasItemHealth for lockpicks/probes (Fixes #1385)
This commit is contained in:
		
							parent
							
								
									7376cb9b61
								
							
						
					
					
						commit
						00775035af
					
				
					 2 changed files with 6 additions and 0 deletions
				
			
		|  | @ -64,6 +64,9 @@ namespace MWClass | |||
| 
 | ||||
|             virtual int getItemMaxHealth (const MWWorld::Ptr& ptr) const; | ||||
|             ///< Return item max health or throw an exception, if class does not have item health
 | ||||
| 
 | ||||
|             virtual bool hasItemHealth (const MWWorld::Ptr& ptr) const { return true; } | ||||
|             ///< \return Item health data available? (default implementation: false)
 | ||||
|     }; | ||||
| } | ||||
| 
 | ||||
|  |  | |||
|  | @ -64,6 +64,9 @@ namespace MWClass | |||
| 
 | ||||
|             virtual int getItemMaxHealth (const MWWorld::Ptr& ptr) const; | ||||
|             ///< Return item max health or throw an exception, if class does not have item health
 | ||||
| 
 | ||||
|             virtual bool hasItemHealth (const MWWorld::Ptr& ptr) const { return true; } | ||||
|             ///< \return Item health data available? (default implementation: false)
 | ||||
|     }; | ||||
| } | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
		Reference in a new issue