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 when Reloading AI in single player #8037
Comments
I can't reproduce this in 1.10.3 downloaded from openttd.org, but still asserts in master. Is it because asserts are disabled? |
When I do the following:
Result: You are automatically switched over to the other AI company. Repeating steps 4-5 reproduces this result again. |
That's fine, I suppose. It tries to pick some other company to move you in. This is where stuff happens: Lines 291 to 302 in 4f8e7b2
When there's only one AI company and no human companies, there is no other company to move to when the AI company is reloading. The assert then triggers (in master, but not in 1.10.3). The Reload AI is located in AI Debug window. It runs 2 commands: Lines 1288 to 1293 in 4f8e7b2
|
The same crash occurs if you write |
Got it. Lines 1236 to 1241 in 4f8e7b2
|
The same crash occurs when doing the following:
|
So based on the steps, it crashes when you restart AI of a company with an active human player. |
Version of OpenTTD
1.10.0-RC1
Expected result
Reload the AI
Actual result
Crash when reloading AI in single player
Steps to reproduce
Start only one AI in single player
Cheat and move to AI company
Let human company bankrupt.
Reload AI -> crash
crash.zip
The text was updated successfully, but these errors were encountered: