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 corrupted data on attack #1457

Merged
merged 5 commits into from
Nov 6, 2021

Conversation

Flamefire
Copy link
Member

When a Military building is captured and recaptured before all capturers arrived they are told about that but not removed from the list in the building leading to dangling pointers

Fixes #1452

Also fixes some output issues mentioned in the forum post on this bug report.

The string is not NULL terminated so take length into account
This happens for new nations as new nations require overrides and new filesystem
Alternative: Move override files of new nations into a subfolder of the nation folder
When a Military building is captured and recaptured before all capturers arrived they are told about that but not removed from the list in the building leading to dangling pointers

Fixes Return-To-The-Roots#1452
@Flamefire Flamefire requested a review from Flow86 November 6, 2021 14:51
@Flow86 Flow86 merged commit a3655cd into Return-To-The-Roots:master Nov 6, 2021
@Flamefire Flamefire deleted the fixCorruptedAttack branch November 6, 2021 18:50
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.

Can't load Savegame
2 participants