mirror of
				https://github.com/OpenMW/openmw.git
				synced 2025-11-04 01:26:39 +00:00 
			
		
		
		
	This commit is contained in:
		
							parent
							
								
									71e5369f04
								
							
						
					
					
						commit
						a5ff8181b7
					
				
					 1 changed files with 16 additions and 10 deletions
				
			
		| 
						 | 
					@ -220,9 +220,15 @@ namespace MWWorld
 | 
				
			||||||
    template <>
 | 
					    template <>
 | 
				
			||||||
    inline void Store<ESM::Dialogue>::load(ESM::ESMReader &esm, const std::string &id) {
 | 
					    inline void Store<ESM::Dialogue>::load(ESM::ESMReader &esm, const std::string &id) {
 | 
				
			||||||
        std::string idLower = Misc::StringUtils::lowerCase(id);
 | 
					        std::string idLower = Misc::StringUtils::lowerCase(id);
 | 
				
			||||||
        mStatic[idLower] = ESM::Dialogue();
 | 
					
 | 
				
			||||||
        mStatic[idLower].mId = id; // don't smash case here, as this line is printed... I think
 | 
					        std::map<std::string, ESM::Dialogue>::iterator it = mStatic.find(idLower);
 | 
				
			||||||
        mStatic[idLower].load(esm);
 | 
					        if (it == mStatic.end()) {
 | 
				
			||||||
 | 
					            it = mStatic.insert( std::make_pair( idLower, ESM::Dialogue() ) ).first;
 | 
				
			||||||
 | 
					            it->second.mId = id; // don't smash case here, as this line is printed... I think
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        //I am not sure is it need to load the dialog from a plugin if it was already loaded from prevois plugins
 | 
				
			||||||
 | 
					        it->second.load(esm);
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    template <>
 | 
					    template <>
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in a new issue