Add undef CreateDirectory to avoid Windows compile error

This commit is contained in:
Aaron 2022-07-05 13:25:23 +02:00 committed by Axel1092
parent c0d259655b
commit a8762db652
1 changed files with 1 additions and 0 deletions

View File

@ -453,6 +453,7 @@ void UCustomTerrainPhysicsComponent::BeginPlay()
SavePath = FPaths::ConvertRelativePathToFull(FPaths::ProjectSavedDir()) + LevelName + "_Terrain/";
// Creating the FileManager
IPlatformFile& FileManager = FPlatformFileManager::Get().GetPlatformFile();
#undef CreateDirectory
if( FileManager.CreateDirectory(*SavePath)){
UE_LOG(LogCarla, Warning,
TEXT("Folder was created at %s"), *SavePath);