mirror of https://github.com/OpenTTD/OpenTTD
Codefix: MapOldOrder uses wrong order type in switch
parent
6cf7a899e9
commit
6b493714aa
|
@ -197,7 +197,7 @@ bool Order::Equals(const Order &other) const
|
||||||
uint16_t Order::MapOldOrder() const
|
uint16_t Order::MapOldOrder() const
|
||||||
{
|
{
|
||||||
uint16_t order = this->GetType();
|
uint16_t order = this->GetType();
|
||||||
switch (this->type) {
|
switch (this->GetType()) {
|
||||||
case OT_GOTO_STATION:
|
case OT_GOTO_STATION:
|
||||||
if (this->GetUnloadType() & OUFB_UNLOAD) SetBit(order, 5);
|
if (this->GetUnloadType() & OUFB_UNLOAD) SetBit(order, 5);
|
||||||
if (this->GetLoadType() & OLFB_FULL_LOAD) SetBit(order, 6);
|
if (this->GetLoadType() & OLFB_FULL_LOAD) SetBit(order, 6);
|
||||||
|
|
Loading…
Reference in New Issue