From ec1efb5e562946ffee6b492c2792c41c0502f10f Mon Sep 17 00:00:00 2001 From: SirLynix Date: Thu, 6 Apr 2023 19:08:27 +0200 Subject: [PATCH] Fix previous commit --- include/Nazara/Core/AppFilesystemComponent.inl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/Nazara/Core/AppFilesystemComponent.inl b/include/Nazara/Core/AppFilesystemComponent.inl index 3e584a776..79489e70b 100644 --- a/include/Nazara/Core/AppFilesystemComponent.inl +++ b/include/Nazara/Core/AppFilesystemComponent.inl @@ -165,7 +165,7 @@ namespace Nz // If stream has an associated filesystem path, use OpenFromFile instead to make sure the File stream is kept alive // (a temporary FileEntry may be created when resolving a filesystem folder) if (std::filesystem::path filePath = arg.stream->GetPath(); !filePath.empty()) - resource = T::OpenFromFile(*arg.stream, params, std::forward(args)...); + resource = T::OpenFromFile(filePath, params, std::forward(args)...); else resource = T::OpenFromStream(*arg.stream, params, std::forward(args)...);