mirror of
				https://github.com/OpenMW/openmw.git
				synced 2025-10-25 07:56:37 +00:00 
			
		
		
		
	Don't list deleted refs in CellStore::foreach
This commit is contained in:
		
							parent
							
								
									49ea1aae67
								
							
						
					
					
						commit
						a8c838b53a
					
				
					 1 changed files with 4 additions and 1 deletions
				
			
		|  | @ -140,9 +140,12 @@ namespace MWWorld | |||
|     { | ||||
|         for (typename List::List::iterator iter (list.mList.begin()); iter!=list.mList.end(); | ||||
|             ++iter) | ||||
|         { | ||||
|             if (!iter->mData.getCount()) | ||||
|                 continue; | ||||
|             if (!functor (iter->mRef, iter->mData)) | ||||
|                 return false; | ||||
| 
 | ||||
|         } | ||||
|         return true; | ||||
|     } | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
		Reference in a new issue