mirror of
				https://github.com/OpenMW/openmw.git
				synced 2025-10-31 16:26:38 +00:00 
			
		
		
		
	Prevent recursive calls to ActiveSpells::update
This commit is contained in:
		
							parent
							
								
									6d3de520e8
								
							
						
					
					
						commit
						d3253cb636
					
				
					 1 changed files with 2 additions and 0 deletions
				
			
		|  | @ -184,6 +184,8 @@ namespace MWMechanics | |||
| 
 | ||||
|     void ActiveSpells::update(const MWWorld::Ptr& ptr, float duration) | ||||
|     { | ||||
|         if (mIterating) | ||||
|             return; | ||||
|         const auto& creatureStats = ptr.getClass().getCreatureStats(ptr); | ||||
|         assert(&creatureStats.getActiveSpells() == this); | ||||
|         IterationGuard guard{ *this }; | ||||
|  |  | |||
		Loading…
	
		Reference in a new issue