mirror of
				https://github.com/OpenMW/openmw.git
				synced 2025-10-31 17:26:38 +00:00 
			
		
		
		
	fixed dialogue record loading with multiple content files
This commit is contained in:
		
							parent
							
								
									767cb54e7c
								
							
						
					
					
						commit
						90aa8f9db6
					
				
					 1 changed files with 2 additions and 4 deletions
				
			
		|  | @ -521,9 +521,8 @@ void CSMWorld::Data::loadFile (const boost::filesystem::path& path, bool base) | |||
| 
 | ||||
|                 if (record.mType==ESM::Dialogue::Journal) | ||||
|                 { | ||||
|                     int index = mJournals.getAppendIndex (id); | ||||
|                     mJournals.load (record, base); | ||||
|                     dialogue = &mJournals.getRecord (index).get(); | ||||
|                     dialogue = &mJournals.getRecord (id).get(); | ||||
|                 } | ||||
|                 else if (record.mType==ESM::Dialogue::Deleted) | ||||
|                 { | ||||
|  | @ -545,9 +544,8 @@ void CSMWorld::Data::loadFile (const boost::filesystem::path& path, bool base) | |||
|                 } | ||||
|                 else | ||||
|                 { | ||||
|                     int index = mTopics.getAppendIndex (id); | ||||
|                     mTopics.load (record, base); | ||||
|                     dialogue = &mTopics.getRecord (index).get(); | ||||
|                     dialogue = &mTopics.getRecord (id).get(); | ||||
|                 } | ||||
| 
 | ||||
|                 break; | ||||
|  |  | |||
		Loading…
	
		Reference in a new issue