changeset 19949:ed7153fa1d53 draft

(svn r24883) -Fix: a completely emptied vehicle could trigger an assert
author rubidium <rubidium@openttd.org>
date Thu, 03 Jan 2013 18:18:32 +0000
parents e4c42446f3e6
children cd268aa44111
files src/economy.cpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/economy.cpp
+++ b/src/economy.cpp
@@ -1639,7 +1639,7 @@
 	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);
 	}