Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Waypoint train list: Assert can be triggered #2249

Closed
DorpsGek opened this issue Aug 22, 2008 · 1 comment
Closed

Waypoint train list: Assert can be triggered #2249

DorpsGek opened this issue Aug 22, 2008 · 1 comment
Labels
flyspray This issue is imported from FlySpray (https://bugs.openttd.org/)

Comments

@DorpsGek
Copy link
Member

Roujin opened the ticket and wrote:

When the train list of a waypoint is emptied, the button for servicing and sending to depot is disabled, but if it was already clicked on, the dropdown stays open (in contrast to other train lists where an open dropdown is immediately closed in this case).
When you then click on "Service" or "Go to depot" (while the list is empty), an assert is triggered.

File: vehicle_gui.cpp
Line: 1040
Expression: this->vehicles.Length() != 0

To reproduce this: Build a waypoint, build a depot, build train in depot, give train order to go to the waypoint. Open the waypoint window. Open the waypoint train list window. (The train should be in the list.) Open the "Service"/"Go to depot" dropdown. Sell the train in its depot. Click on either "Service" or "Go to depot" in the dropdown of the waypoint's (now empty) train list.

Reported version: trunk
Operating system: All


This issue was imported from FlySpray: https://bugs.openttd.org/task/2249
@DorpsGek
Copy link
Member Author

Rubidium closed the ticket.

Reason for closing: Fixed

In r14133.


This comment was imported from FlySpray: https://bugs.openttd.org/task/2249

@DorpsGek DorpsGek added Core flyspray This issue is imported from FlySpray (https://bugs.openttd.org/) labels Apr 6, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
flyspray This issue is imported from FlySpray (https://bugs.openttd.org/)
Projects
None yet
Development

No branches or pull requests

1 participant