Skip to content

Commit 4436fc2

Browse files
committed
Fix a case where tank autofill choices didn't get updated
1 parent 4b212cc commit 4436fc2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Source/Tanks/EditorPartSetMaintainer.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ private void UpdateCrossfeedSets(ShipConstruct ship)
5757
private void OnPartAttach(GameEvents.HostTargetAction<Part, Part> hostTarget)
5858
{
5959
// Attaching: host is the incoming part
60-
if (hostTarget.target?.ship == EditorLogic.fetch.ship)
60+
if (hostTarget.target?.localRoot?.ship == EditorLogic.fetch.ship)
6161
ScheduleUpdateIfNeeded(hostTarget, isAttachEvent: true);
6262
}
6363

0 commit comments

Comments
 (0)