Skip to content

Commit 53cc89e

Browse files
authored
Fix build error when cooking maps
`sfCollectionOnlyMapNames` was being overwritten with a potentially null value if there were maps in 'ContentForCook/Maps'. This wraps the right-hand expression with `@()` to ensure the null value is converted to an empty array.
1 parent 7bc79b5 commit 53cc89e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

build_common.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -611,7 +611,7 @@ class BuildProject {
611611
$sfMapsNames = @(Get-ChildItem -Path "$contentForCookPath/Maps" -Recurse -Include *.umap | ForEach-Object { $_.BaseName })
612612

613613
# Allow using the force-package-into-map functionality for non-empty maps
614-
$sfCollectionOnlyMapsNames = $sfCollectionOnlyMapsNames | Where-Object { $sfMapsNames -notcontains $_ }
614+
$sfCollectionOnlyMapsNames = @($sfCollectionOnlyMapsNames | Where-Object { $sfMapsNames -notcontains $_ })
615615
}
616616

617617
if (Test-Path "$contentForCookPath/Standalone") {

0 commit comments

Comments
 (0)