OpenTTD

Tasklist

FS#3180 - Crash when destroying depot with opened vehicle list (r17432)

Attached to Project: OpenTTD
Opened by Manuel Wolf (Roujin) - Sunday, 06 September 2009, 23:12 GMT
Last edited by Remko Bijker (Rubidium) - Monday, 07 September 2009, 08:06 GMT
Type Bug
Category Core
Status Closed
Assigned To No-one
Operating System All
Severity High
Priority Normal
Reported Version trunk
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

OpenTTD crashes when I destroy a (road) depot of which I previously opened the "vehicles going to this depot" window.

The invalid operation eventually leading to the crash is in vehicle_gui.cpp, line 966 (fetching the name of the town to display in the header).
My guess is that the window (unlike the depot window) is not deleted when its corresponding depot is destroyed, resulting in the error.
This task depends upon

Closed by  Remko Bijker (Rubidium)
Monday, 07 September 2009, 08:06 GMT
Reason for closing:  Fixed
Additional comments about closing:  In r17442

Loading...