Merge branch 'tracerestrict-sx' into jgrpp

This commit is contained in:
Jonathan G Rennison
2016-01-04 18:40:26 +00:00

View File

@@ -1023,6 +1023,7 @@ CommandCost CmdProgramSignalTraceRestrictProgMgmt(TileIndex tile, DoCommandFlag
if (source_prog) { if (source_prog) {
prog->items = source_prog->items; // copy prog->items = source_prog->items; // copy
} }
prog->Validate();
break; break;
} }
@@ -1057,6 +1058,7 @@ CommandCost CmdProgramSignalTraceRestrictProgMgmt(TileIndex tile, DoCommandFlag
} }
new_prog->items.swap(items); new_prog->items.swap(items);
new_prog->Validate();
} }
break; break;
} }