1
0
Fork 0

Codefix: MapOldOrder uses wrong order type in switch

pull/13554/head
enveeed 2025-02-14 11:17:48 +01:00
parent 6cf7a899e9
commit 6b493714aa
1 changed files with 1 additions and 1 deletions

View File

@ -197,7 +197,7 @@ bool Order::Equals(const Order &other) const
uint16_t Order::MapOldOrder() const
{
uint16_t order = this->GetType();
switch (this->type) {
switch (this->GetType()) {
case OT_GOTO_STATION:
if (this->GetUnloadType() & OUFB_UNLOAD) SetBit(order, 5);
if (this->GetLoadType() & OLFB_FULL_LOAD) SetBit(order, 6);