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 when creating a scenario in the map editor #2523

Closed
CelticMinstrel opened this issue Feb 19, 2018 · 1 comment
Closed

Crash when creating a scenario in the map editor #2523

CelticMinstrel opened this issue Feb 19, 2018 · 1 comment
Assignees
Labels
Bug Issues involving unexpected behavior. Editor Map/scenario editor issues.

Comments

@CelticMinstrel
Copy link
Member

When I create a scenario in the map editor, the game crashes in an attempt to access the AI manager.

It only happens if I've already entered a game in the current session; if I start up the game, go straight to the editor, and create a scenario, there's no crash.

@CelticMinstrel CelticMinstrel added Bug Issues involving unexpected behavior. Editor Map/scenario editor issues. labels Feb 19, 2018
@Vultraz
Copy link
Member

Vultraz commented Feb 20, 2018

This is almost certainly, since ai::manager::singleton is never reset to nullptr once the AI manager is destroyed. So, game starts, manager created, game ends, manager destroyed, but the singleton is not reset to ai::manager::has_manager() returns true when team_data is initialized for a new side in the editor.

Assigning to @jyrkive since it was his refactor originally.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Issues involving unexpected behavior. Editor Map/scenario editor issues.
Projects
None yet
Development

No branches or pull requests

3 participants