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

[Crash]: Assertion failure in BuildRailWaypointWindow constructor when _cur_waypoint_type >= _waypoint_count #9802

Closed
JGRennison opened this issue Jan 29, 2022 · 0 comments

Comments

@JGRennison
Copy link
Contributor

Version of OpenTTD

master

Steps to reproduce

  1. Load or start a game with many NewGRF waypoint types available
  2. Open the waypoint selector and select the last one
  3. Abandon game
  4. Load or start a game with few but not zero NewGRF waypoint types available
  5. Assertion failure

bool Scrollbar::SetPosition(int): Assertion 'this->count <= this->cap ? (position == 0) : (position + this->cap <= this->count)' failed via matrix->SetClicked(_cur_waypoint_type);

Upload crash files

issue-9802.zip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant