mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-17 21:25:40 +00:00
(svn r21934) -Fix (r21933): The original plan was to run the regression before committing.
This commit is contained in:
parent
a97d52a29a
commit
49ea0e9092
@ -1860,7 +1860,7 @@ bool UpdateOrderDest(Vehicle *v, const Order *order, int conditional_depth)
|
||||
|
||||
/* Get the current order */
|
||||
order = v->GetOrder(v->cur_real_order_index);
|
||||
if (order->IsType(OT_AUTOMATIC)) {
|
||||
if (order != NULL && order->IsType(OT_AUTOMATIC)) {
|
||||
assert(v->GetNumManualOrders() == 0);
|
||||
order = NULL;
|
||||
}
|
||||
@ -1927,7 +1927,7 @@ bool ProcessOrders(Vehicle *v)
|
||||
v->UpdateRealOrderIndex();
|
||||
|
||||
const Order *order = v->GetOrder(v->cur_real_order_index);
|
||||
if (order->IsType(OT_AUTOMATIC)) {
|
||||
if (order != NULL && order->IsType(OT_AUTOMATIC)) {
|
||||
assert(v->GetNumManualOrders() == 0);
|
||||
order = NULL;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user