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

Fix crash when non-player changes ai_manual_turn_done #1291

Merged
merged 1 commit into from
Aug 17, 2022

Conversation

psampathkumar
Copy link
Contributor

This could happen in pre-game, or for global observer.

See osdn #45310

Ported from: freeciv/freeciv@a8570f3

if (can_end_turn()) {

if (!gui_options.ai_manual_turn_done) {
player *pplayer = client_player();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

const?

This could happen in pre-game, or for global observer.

See osdn #45310

Ported from: freeciv/freeciv@a8570f3
@psampathkumar psampathkumar force-pushed the bugfix/ai_manual_turn_done branch from 17af757 to 9f7543a Compare August 17, 2022 20:41
@lmoureaux lmoureaux merged commit b2f05a5 into longturn:master Aug 17, 2022
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

Successfully merging this pull request may close these issues.

3 participants