mirror of
				https://github.com/OpenMW/openmw.git
				synced 2025-11-04 01:26:39 +00:00 
			
		
		
		
	fix crash on reset
fix tests
This commit is contained in:
		
							parent
							
								
									9f597ecfea
								
							
						
					
					
						commit
						6c6dbccd0a
					
				
					 2 changed files with 1 additions and 3 deletions
				
			
		| 
						 | 
				
			
			@ -92,6 +92,7 @@ void MWWorld::WorldModel::clear()
 | 
			
		|||
    mLastGeneratedRefnum = ESM::RefNum{};
 | 
			
		||||
    mInteriors.clear();
 | 
			
		||||
    mExteriors.clear();
 | 
			
		||||
    mCells.clear();
 | 
			
		||||
    std::fill(mIdCache.begin(), mIdCache.end(), std::make_pair(ESM::RefId(), (MWWorld::CellStore*)nullptr));
 | 
			
		||||
    mIdCacheIndex = 0;
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -491,9 +491,6 @@ namespace
 | 
			
		|||
            else
 | 
			
		||||
                result = esmStore.get<RecordType>().search(refId);
 | 
			
		||||
 | 
			
		||||
            if (result == nullptr || result->mId != refId)
 | 
			
		||||
                int debug = 0;
 | 
			
		||||
 | 
			
		||||
            ASSERT_NE(result, nullptr);
 | 
			
		||||
            EXPECT_EQ(result->mId, refId);
 | 
			
		||||
        }
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in a new issue