Fix positions not being listed (#990)

This commit is contained in:
Leifa 2024-06-23 20:21:28 +02:00 committed by GitHub
parent 4043d97257
commit 8004477d0c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1417,7 +1417,7 @@ void Courtroom::set_background(QString p_background, bool display)
const QStringList overrides = {"def", "wit", "pro"};
for (const QString &override_pos : overrides)
{
if (!ao_app->read_design_ini("court:" + override_pos + "/rect", ao_app->get_background_path("design.ini")).isEmpty())
if (!ao_app->read_design_ini("court:" + override_pos + "/origin", ao_app->get_background_path("design.ini")).isEmpty())
{
pos_list.append(override_pos);
}