FS#3360 - Roadstop assertion: this->occupied < this->length

Attached to Project: OpenTTD
Opened by Jose Soler (Terkhen) - Monday, 07 December 2009, 22:20 GMT
Last edited by Remko Bijker (Rubidium) - Tuesday, 08 December 2009, 00:16 GMT
Type Bug
Category Vehicles
Status Closed
Assigned To No-one
Operating System All
Severity High
Priority Normal
Reported Version trunk
Due in Version 1.0.0
Due Date Undecided
Percent Complete 100%
Votes 0
Private No


In r18425, the attached savegame will assert exactly in 15 days with the following error:

Assertion failed at line 292 of ..\src\roadstop.cpp: this->occupied < this->length.
This task depends upon

Closed by  Remko Bijker (Rubidium)
Tuesday, 08 December 2009, 00:16 GMT
Reason for closing:  Fixed
Additional comments about closing:  In r18428 (depot) / 18429 (assert)
Comment by Remko Bijker (Rubidium) - Monday, 07 December 2009, 23:35 GMT
The assert is wrong when vehicles are running through eachother. But not quite in this case; the depot gets emptied instantaniously on the 12th which causes vehicles to be running through eachother.