Add release slot train order

This commit is contained in:
Jonathan G Rennison
2021-02-10 22:30:22 +00:00
parent d42ad99688
commit 8a814bbfe3
9 changed files with 128 additions and 6 deletions

View File

@@ -1943,6 +1943,10 @@ void TraceRestrictRemoveSlotID(TraceRestrictSlotID index)
o->GetXDataRef() = INVALID_TRACE_RESTRICT_SLOT_ID;
changed_order = true;
}
if (o->IsType(OT_RELEASE_SLOT) && o->GetDestination() == index) {
o->SetDestination(INVALID_TRACE_RESTRICT_SLOT_ID);
changed_order = true;
}
}
// update windows