summaryrefslogtreecommitdiff
path: root/src/economy.cpp
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2016-05-29 13:33:20 +0000
committerfrosch <frosch@openttd.org>2016-05-29 13:33:20 +0000
commitdac94c7cbc6455bd004eb410f384bad205e32dc9 (patch)
tree4d61b7f7e033ddda964fa83a3cade2f91adc53c9 /src/economy.cpp
parent7d4754a4f86d635104c257b29a58d5488f7ebf4e (diff)
downloadopenttd-dac94c7cbc6455bd004eb410f384bad205e32dc9.tar.xz
(svn r27584) -Codechange: Add some assertions about Vehicle::cargo_payment.
Diffstat (limited to 'src/economy.cpp')
-rw-r--r--src/economy.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/economy.cpp b/src/economy.cpp
index d78d2ccce..121fc6733 100644
--- a/src/economy.cpp
+++ b/src/economy.cpp
@@ -1651,6 +1651,7 @@ static void LoadUnloadVehicle(Vehicle *front)
uint amount_unloaded = _settings_game.order.gradual_loading ? min(cargo_count, load_amount) : cargo_count;
bool remaining = false; // Are there cargo entities in this vehicle that can still be unloaded here?
+ assert(payment != NULL);
payment->SetCargo(v->cargo_type);
if (!HasBit(ge->status, GoodsEntry::GES_ACCEPTANCE) && v->cargo.ActionCount(VehicleCargoList::MTA_DELIVER) > 0) {