diff --git a/stratosphere/ncm/source/lr_registeredlocationresolver.cpp b/stratosphere/ncm/source/lr_registeredlocationresolver.cpp index 4a491f928..8e9f53efa 100644 --- a/stratosphere/ncm/source/lr_registeredlocationresolver.cpp +++ b/stratosphere/ncm/source/lr_registeredlocationresolver.cpp @@ -51,8 +51,7 @@ namespace sts::lr { } Result RegisteredLocationResolverInterface::RedirectProgramPath(InPointer path, ncm::TitleId tid) { - Path tmp_path = *path.pointer; - this->program_redirector.SetRedirection(tid, tmp_path); + this->program_redirector.SetRedirection(tid, *path.pointer); return ResultSuccess; } @@ -83,8 +82,7 @@ namespace sts::lr { } Result RegisteredLocationResolverInterface::RedirectHtmlDocumentPath(InPointer path, ncm::TitleId tid) { - Path tmp_path = *path.pointer; - this->html_docs_redirector.SetRedirection(tid, tmp_path); + this->html_docs_redirector.SetRedirection(tid, *path.pointer); return ResultSuccess; }