diff --git a/OpenRA.Mods.Common/Traits/World/EditorActorPreview.cs b/OpenRA.Mods.Common/Traits/World/EditorActorPreview.cs index 9afd3daacb..a4190f5438 100644 --- a/OpenRA.Mods.Common/Traits/World/EditorActorPreview.cs +++ b/OpenRA.Mods.Common/Traits/World/EditorActorPreview.cs @@ -74,7 +74,11 @@ namespace OpenRA.Mods.Common.Traits var subCellInit = reference.GetOrDefault(); var subCell = subCellInit != null ? subCellInit.Value : SubCell.Any; - Footprint = ios?.OccupiedCells(Info, location, subCell) ?? new Dictionary() { { location, SubCell.FullCell } }; + var occupiedCells = ios?.OccupiedCells(Info, location, subCell); + if (occupiedCells == null || occupiedCells.Count == 0) + Footprint = new Dictionary() { { location, SubCell.FullCell } }; + else + Footprint = occupiedCells; tooltip = Info.TraitInfos().FirstOrDefault(info => info.EnabledByDefault) as TooltipInfoBase ?? Info.TraitInfos().FirstOrDefault(info => info.EnabledByDefault);