From c749a02ac44ee9bda8aead15c5293125348053b5 Mon Sep 17 00:00:00 2001 From: rubidium Date: Thu, 3 Jan 2013 18:18:32 +0000 Subject: [PATCH] (svn r24883) -Fix: a completely emptied vehicle could trigger an assert --- src/economy.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/economy.cpp b/src/economy.cpp index cfb5a4ea18..c2868fc1ae 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); }