summaryrefslogtreecommitdiff
path: root/src/economy.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2013-01-03 18:18:32 +0000
committerrubidium <rubidium@openttd.org>2013-01-03 18:18:32 +0000
commitc749a02ac44ee9bda8aead15c5293125348053b5 (patch)
tree9296504ffee919d21b7f09a241d92cf591a8a384 /src/economy.cpp
parent0dd0bbc0717a62fab93a3279085b7a609526725e (diff)
downloadopenttd-c749a02ac44ee9bda8aead15c5293125348053b5.tar.xz
(svn r24883) -Fix: a completely emptied vehicle could trigger an assert
Diffstat (limited to 'src/economy.cpp')
-rw-r--r--src/economy.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/economy.cpp b/src/economy.cpp
index cfb5a4ea1..c2868fc1a 100644
--- a/src/economy.cpp
+++ b/src/economy.cpp
@@ -1639,7 +1639,7 @@ static void LoadUnloadVehicle(Vehicle *front, int *cargo_left)
if (completely_emptied) {
/* Make sure the vehicle is marked dirty, since we need to update the NewGRF
* properties such as weight, power and TE whenever the trigger runs. */
- assert(dirty_vehicle);
+ dirty_vehicle = true;
TriggerVehicle(front, VEHICLE_TRIGGER_EMPTY);
}