Fix get_court_sfx using latin1 instead of utf-8 (#540)
Co-authored-by: in1tiate <32779090+in1tiate@users.noreply.github.com>
This commit is contained in:
		
							parent
							
								
									5fca08537b
								
							
						
					
					
						commit
						31abe0c848
					
				@ -477,7 +477,7 @@ QString AOApplication::get_court_sfx(QString p_identifier, QString p_misc)
 | 
				
			|||||||
{
 | 
					{
 | 
				
			||||||
  QString value = get_config_value(p_identifier, "courtroom_sounds.ini", current_theme, get_subtheme(), default_theme, p_misc);
 | 
					  QString value = get_config_value(p_identifier, "courtroom_sounds.ini", current_theme, get_subtheme(), default_theme, p_misc);
 | 
				
			||||||
  if (!value.isEmpty())
 | 
					  if (!value.isEmpty())
 | 
				
			||||||
    return value.toLatin1();
 | 
					    return value.toUtf8();
 | 
				
			||||||
  return "";
 | 
					  return "";
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user