mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-04 06:00:15 +00:00
Merge branch 'tracerestrict' into tracerestrict-sx
This commit is contained in:
commit
7d5df6b0db
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user