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:
Crystalwarrior 2021-04-23 22:17:45 +03:00 committed by GitHub
parent 5fca08537b
commit 31abe0c848
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);
if (!value.isEmpty())
return value.toLatin1();
return value.toUtf8();
return "";
}