diff --git a/UE4.26/CommandLineGeometryTest/Private/DynamicMeshOBJWriter.h b/UE4.26/CommandLineGeometryTest/Private/DynamicMeshOBJWriter.h index ebdc8b6..d8a387e 100644 --- a/UE4.26/CommandLineGeometryTest/Private/DynamicMeshOBJWriter.h +++ b/UE4.26/CommandLineGeometryTest/Private/DynamicMeshOBJWriter.h @@ -12,7 +12,7 @@ class FDynamicMeshOBJWriter std::ofstream FileOut; - TFunction OpenFile = [this](const FString& Path) { FileOut.open(*Path, std::ofstream::out | std::ofstream::trunc); return !!FileOut; }; + TFunction OpenFile = [this](const FString& Path) { FileOut.open(TCHAR_TO_ANSI(*Path), std::ofstream::out | std::ofstream::trunc); return !!FileOut; }; TFunction CloseFile = [this]() { FileOut.close(); }; TFunction WriteLine = [this](const TCHAR* Line) { FileOut << TCHAR_TO_ANSI(Line) << std::endl; }; @@ -162,4 +162,4 @@ class FDynamicMeshOBJWriter -}; \ No newline at end of file +};