Commit b7bf73fc authored by Florian Oetke's avatar Florian Oetke
Browse files

removed redundant moves

parent 9d989eb4
...@@ -424,15 +424,15 @@ namespace mirrage::asset { ...@@ -424,15 +424,15 @@ namespace mirrage::asset {
auto path = append_file(dir->second.base_dir, id.name()); auto path = append_file(dir->second.base_dir, id.name());
if(exists_file(path)) if(exists_file(path))
return std::move(path); return path;
path = path + dir->second.default_extension; path = path + dir->second.default_extension;
if(exists_file(path)) if(exists_file(path))
return std::move(path); return path;
if(!only_preexisting) { if(!only_preexisting) {
PHYSFS_mkdir(dir->second.base_dir.c_str()); PHYSFS_mkdir(dir->second.base_dir.c_str());
return std::move(path); return path;
} }
return util::nothing; return util::nothing;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment