mirror of
				https://github.com/OpenMW/openmw.git
				synced 2025-11-04 01:26:39 +00:00 
			
		
		
		
	Merge pull request #1516 from baszczewski/patch-1
Fix assert with empty setting value
This commit is contained in:
		
						commit
						f3be39660b
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
					@ -63,7 +63,7 @@ void Config::GameSettings::validatePaths()
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    // Do the same for data-local
 | 
					    // Do the same for data-local
 | 
				
			||||||
    QString local = mSettings.value(QString("data-local"));
 | 
					    QString local = mSettings.value(QString("data-local"));
 | 
				
			||||||
    if (local.at(0) == QChar('\"'))
 | 
					    if (local.length() && local.at(0) == QChar('\"'))
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
        local.remove(0, 1);
 | 
					        local.remove(0, 1);
 | 
				
			||||||
        local.chop(1);
 | 
					        local.chop(1);
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in a new issue