mirror of https://github.com/OpenTTD/OpenTTD.git
(svn r12585) -Fix (r12584): assumption that assertions were enabled during compilation/testing was flawed.
This commit is contained in:
parent
5b47f81b0f
commit
630d5ad766
|
@ -1552,7 +1552,7 @@ void VehiclePayment(Vehicle *front_v)
|
|||
*/
|
||||
static void LoadUnloadVehicle(Vehicle *v, int *cargo_left)
|
||||
{
|
||||
assert(v->current_order.type == OT_LOADING);
|
||||
assert(v->current_order.IsType(OT_LOADING));
|
||||
|
||||
/* We have not waited enough time till the next round of loading/unloading */
|
||||
if (--v->load_unload_time_rem != 0) {
|
||||
|
|
|
@ -3164,7 +3164,7 @@ void Vehicle::BeginLoading()
|
|||
|
||||
void Vehicle::LeaveStation()
|
||||
{
|
||||
assert(current_order.type == OT_LOADING);
|
||||
assert(current_order.IsType(OT_LOADING));
|
||||
|
||||
/* Only update the timetable if the vehicle was supposed to stop here. */
|
||||
if (current_order.flags & OFB_NON_STOP) UpdateVehicleTimetable(this, false);
|
||||
|
|
Loading…
Reference in New Issue