1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-27 08:29:11 +00:00

(svn r24883) -Fix: a completely emptied vehicle could trigger an assert

This commit is contained in:
rubidium
2013-01-03 18:18:32 +00:00
parent 0dd0bbc071
commit c749a02ac4

View File

@@ -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);
}