diff --git a/src/duckstation-qt/qthost.cpp b/src/duckstation-qt/qthost.cpp index df7302035..711e03190 100644 --- a/src/duckstation-qt/qthost.cpp +++ b/src/duckstation-qt/qthost.cpp @@ -2189,9 +2189,9 @@ bool QtHost::ParseCommandLineParametersAndInitializeConfig(QApplication& app, #undef CHECK_ARG_PARAM } - if (!autoboot || !autoboot->filename.empty()) + if (autoboot && !autoboot->filename.empty()) autoboot->filename += ' '; - autoboot->filename += args[i].toStdString(); + AutoBoot(autoboot)->filename += args[i].toStdString(); } // To do anything useful, we need the config initialized.