From 84e3fa75e1977375aafbd56219ac34a26f9f6d73 Mon Sep 17 00:00:00 2001 From: rubidium Date: Sat, 5 Apr 2008 23:46:01 +0000 Subject: (svn r12585) -Fix (r12584): assumption that assertions were enabled during compilation/testing was flawed. --- src/economy.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/economy.cpp') diff --git a/src/economy.cpp b/src/economy.cpp index 79283e664..329fdcbc3 100644 --- a/src/economy.cpp +++ b/src/economy.cpp @@ -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) { -- cgit v1.2.3-54-g00ecf