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

map: only actualize after loading all submaps #42545

Merged
merged 1 commit into from
Aug 18, 2020
Merged

map: only actualize after loading all submaps #42545

merged 1 commit into from
Aug 18, 2020

Conversation

andrei8l
Copy link
Contributor

@andrei8l andrei8l commented Jul 29, 2020

Summary

SUMMARY: Bugfixes "map: only actualize after loading all submaps"

Purpose of change

Entities (such as fields) at the edges of submaps can crash the game during save game loading if their processing logic tries to access adjacent submaps that have not been loaded yet.

fixes #42542

Describe the solution

Actualize submaps after loading them all

Describe alternatives you've considered

N/A

Testing

Load save file from bug report without a crash

Additional context

It's not pretty

@andrei8l andrei8l marked this pull request as ready for review July 29, 2020 19:30
@kevingranade
Copy link
Member

This pull request has been mentioned on Cataclysm: Dark Days Ahead. There might be relevant details there:

https://discourse.cataclysmdda.org/t/plz-help-with-my-game-crach/24306/3

@ZhilkinSerg ZhilkinSerg added <Bugfix> This is a fix for a bug (or closes open issue) [C++] Changes (can be) made in C++. Previously named `Code` Character / World Generation Issues and enhancements concerning stages of creating a character or a world labels Aug 2, 2020
@ZhilkinSerg ZhilkinSerg self-assigned this Aug 17, 2020
@ZhilkinSerg ZhilkinSerg merged commit 0f7a804 into CleverRaven:master Aug 18, 2020
@ZhilkinSerg ZhilkinSerg removed their assignment Aug 18, 2020
@andrei8l andrei8l deleted the fix-loading-crash branch November 4, 2020 19:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
<Bugfix> This is a fix for a bug (or closes open issue) [C++] Changes (can be) made in C++. Previously named `Code` Character / World Generation Issues and enhancements concerning stages of creating a character or a world
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Crash while loading a save game.
3 participants