diff --git a/FileSDK.uplugin b/FileSDK.uplugin index 90e6f3b..c650a4a 100644 --- a/FileSDK.uplugin +++ b/FileSDK.uplugin @@ -1,7 +1,7 @@ { "FileVersion": 3, - "Version": 13, - "VersionName": "1.13", + "Version": 14, + "VersionName": "1.14", "FriendlyName": "Blueprint File SDK", "Description": "A simple plugin to interact with files and folders within blueprints.", "Category": "Code Plugins", diff --git a/Source/FileSDK/Private/FileSDKBPLibrary.cpp b/Source/FileSDK/Private/FileSDKBPLibrary.cpp index 6ce6c4e..a7edbb7 100644 --- a/Source/FileSDK/Private/FileSDKBPLibrary.cpp +++ b/Source/FileSDK/Private/FileSDKBPLibrary.cpp @@ -134,10 +134,9 @@ bool UFileSDKBPLibrary::CopyFile( #if PLATFORM_MAC || PLATFORM_IOS struct stat FileInfo; - auto applePlatformFile = static_cast(PlatformFile); - if (applePlatformFile.Stat(*Source, &FileInfo) == 0) { + if (PlatformFile.Stat(*Source, &FileInfo) == 0) { FileInfo.st_mode |= S_IWUSR; - chmod(TCHAR_TO_UTF8(*applePlatformFile.NormalizeFilename(*Destination)), FileInfo.st_mode); + chmod(TCHAR_TO_UTF8(*PlatformFile.NormalizeFilename(*Destination)), FileInfo.st_mode); } #endif