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

[Bug]: CTD when all cargos are disabled by NewGRF, and cargo payment graph opened #9545

Open
2TallTyler opened this issue Sep 9, 2021 · 2 comments

Comments

@2TallTyler
Copy link
Member

@2TallTyler 2TallTyler commented Sep 9, 2021

Version of OpenTTD

Master (7469f00)

Expected result

When all cargos are disabled by a NewGRF like Feature Disabler GRF, starting a new game without any cargos prompts the following error message on map generation:

No vehicles will be available at all
Change your NewGRF configuration

I would expect opening the "Cargo payment rates" graph to show an empty graph with no cargos.

Actual result

Opening the "Cargo payment rates" graph causes a crash to desktop.

Steps to reproduce

  1. Enable the NewGRF Feature Disabler GRF with the parameter enabled to disable all cargos
  2. Start a game
  3. Open the "Cargo payment rates" graph
  4. CTD
@nielsmh
Copy link
Contributor

@nielsmh nielsmh commented Sep 9, 2021

I would expect the game to abort world generation if there are no cargo types available. If there aren't any cargo types there isn't any game to play at all, since you have nothing to transport.

Loading

@ldpl
Copy link
Contributor

@ldpl ldpl commented Sep 9, 2021

It's perfect! You can build eye-candy objects all day without the distraction of pointless transportation! :p

Loading

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

Successfully merging a pull request may close this issue.

None yet
4 participants