diff --git a/src/common/config.cpp b/src/common/config.cpp index 728e5df06..2a8352fbd 100644 --- a/src/common/config.cpp +++ b/src/common/config.cpp @@ -664,7 +664,9 @@ void load(const std::filesystem::path& path) { if (data.contains("Keys")) { const toml::value& keys = data.at("Keys"); - trophyKey = toml::find>(keys, "TrophyKey"); + if (keys.contains("TrophyKey") && keys.at("TrophyKey").is_array()) { + trophyKey = toml::find>(keys, "TrophyKey"); + } } }