mirror of
				https://github.com/OpenMW/openmw.git
				synced 2025-10-25 11:26:37 +00:00 
			
		
		
		
	Make sure that health is >= 1 when resurrecting the player (Fixes #2972)
This commit is contained in:
		
							parent
							
								
									05f1fbf593
								
							
						
					
					
						commit
						6f98982bc2
					
				
					 1 changed files with 4 additions and 2 deletions
				
			
		|  | @ -267,9 +267,11 @@ namespace MWMechanics | |||
|     { | ||||
|         if (mDead) | ||||
|         { | ||||
|             if (mDynamic[0].getModified() < 1) | ||||
|                 mDynamic[0].setModified(1, 0); | ||||
| 
 | ||||
|             mDynamic[0].setCurrent(mDynamic[0].getModified()); | ||||
|             if (mDynamic[0].getCurrent()>=1) | ||||
|                 mDead = false; | ||||
|             mDead = false; | ||||
|         } | ||||
|     } | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
		Reference in a new issue