diff --git a/src/common/config.cpp b/src/common/config.cpp index e1363c17..99de5256 100644 --- a/src/common/config.cpp +++ b/src/common/config.cpp @@ -77,13 +77,13 @@ void load(const std::filesystem::path& path) { } } if (data.contains("GPU")) { - auto generalResult = toml::expect(data.at("GPU")); - if (generalResult.is_ok()) { - auto general = generalResult.unwrap(); + auto gpuResult = toml::expect(data.at("GPU")); + if (gpuResult.is_ok()) { + auto gpu = gpuResult.unwrap(); - screenWidth = toml::find_or(general, "screenWidth", screenWidth); - screenHeight = toml::find_or(general, "screenHeight", screenHeight); - gpuId = toml::find_or(general, "gpuId", 0); + screenWidth = toml::find_or(gpu, "screenWidth", screenWidth); + screenHeight = toml::find_or(gpu, "screenHeight", screenHeight); + gpuId = toml::find_or(gpu, "gpuId", 0); } } if (data.contains("Debug")) {