Skip to content

Commit fc2af34

Browse files
committed
fix: build error
1 parent f0ed3c1 commit fc2af34

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

source/MaaFramework/Resource/ResourceMgr.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -600,13 +600,13 @@ bool ResourceMgr::load(const std::filesystem::path& path)
600600

601601
bool to_load = false;
602602
bool ret = true;
603-
if (auto p = path / "default_pipeline.jsonc"_path; std::filesystem::exists(p)) {
603+
if (auto jc_path = path / "default_pipeline.jsonc"_path; std::filesystem::exists(jc_path)) {
604604
to_load = true;
605-
ret &= default_pipeline_.load(p);
605+
ret &= default_pipeline_.load(jc_path);
606606
}
607-
else if (auto p = path / "default_pipeline.json"_path; std::filesystem::exists(p)) {
607+
else if (auto j_path = path / "default_pipeline.json"_path; std::filesystem::exists(j_path)) {
608608
to_load = true;
609-
ret &= default_pipeline_.load(p);
609+
ret &= default_pipeline_.load(j_path);
610610
}
611611

612612
if (auto p = path / "pipeline"_path; std::filesystem::exists(p)) {

0 commit comments

Comments
 (0)