Skip to content

Commit 3fbf878

Browse files
Reapply commit 53d2152 from issue #806 for issue #820
1 parent f723e57 commit 3fbf878

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/RemoteTech/FlightComputer/FlightComputer.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -567,7 +567,8 @@ public void Load(ConfigNode configNode)
567567
if (Vessel.packed)
568568
{
569569
RTLog.Notify("Save Flightconfig after unpacking");
570-
_fcLoadedConfigs = configNode;
570+
_fcLoadedConfigs = configNode.CreateCopy();
571+
//Apparently, _fcLoadedConfigs (resided at memory pointer of configNode) is changed at 1 point before loading into FC. CreateCopy() duplicates the content to a separate memory space.
571572
return;
572573
}
573574

0 commit comments

Comments
 (0)