Merge branch 'tracerestrict' into tracerestrict-sx

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

View File

@ -1012,6 +1012,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;
} }
@ -1046,6 +1047,7 @@ CommandCost CmdProgramSignalTraceRestrictProgMgmt(TileIndex tile, DoCommandFlag
} }
new_prog->items.swap(items); new_prog->items.swap(items);
new_prog->Validate();
} }
break; break;
} }