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

OTTD crashes on RV build #2617

Closed
DorpsGek opened this issue Feb 7, 2009 · 3 comments
Closed

OTTD crashes on RV build #2617

DorpsGek opened this issue Feb 7, 2009 · 3 comments
Labels
component: NewGRF This issue is related to NewGRFs flyspray This issue is imported from FlySpray (https://bugs.openttd.org/)

Comments

@DorpsGek
Copy link
Member

DorpsGek commented Feb 7, 2009

George opened the ticket and wrote:

R15379

when I start a new game in toyland and try to build Refrigerator truck, the game crashes

P.S. Refrigerated truck should not be available in the list, because there are no refrigerated cargo in toyland. In temperate it does not appear as intended.

Attachments

Reported version: trunk
Operating system: All


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

DorpsGek commented Feb 7, 2009

frosch wrote:

A vehicle does not show up, when the cargo of the first vehicle is not available in the climate.
The default cargo of the refrigerator truck is slot 0x0B meaning "food" in arctic and tropic, and "fizzy drinks" in toyland. Temperate does not have slot 11.


This comment was imported from FlySpray: https://bugs.openttd.org/task/2617#comment5535

@DorpsGek
Copy link
Member Author

DorpsGek commented Feb 7, 2009

frosch wrote:

Silly me.
v->cargo_type is used in lots of places. Most can trigger an assertion, usually the one in GetCargo().
So maybe the cargo_type should be set to a better value than CT_INVALID, and cargo_cap zeroed instead.
Making the articulated roadvehicle not available would also make sense, but I have no idea how that could be done.
After that r15399 should be reverted, except the assertion in it.


This comment was imported from FlySpray: https://bugs.openttd.org/task/2617#comment5536

@DorpsGek
Copy link
Member Author

frosch closed the ticket.

Reason for closing: Fixed

in r15541 (hopefully this time)


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

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

No branches or pull requests

1 participant