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

Fixed mutable copy-from #3666

Merged
merged 1 commit into from
Nov 14, 2023
Merged

Conversation

Vollch
Copy link
Contributor

@Vollch Vollch commented Nov 14, 2023

Summary

SUMMARY: Bugfixes "Fixed mutable copy-from"

Purpose of change

Should fix #3665
On my system it cause segfaults, but it comes from same mod and same special. Must be a build difference.
And it kinda makes sense that it starts ranting about unresolvable joins, if outward_joins got duplicated during second finalize.

Describe the solution

Added some checks to clean old data on finalize, which is happens twice when special is copy-from'ed. And some more small adjustments to make it more copy-from proof.
Also, by the way, removed obsolete anthill check in mapgen.cpp. It's currently handled by json.

Describe alternatives you've considered

Rewriting copy-froms -_-

Testing

Start game with PKs_Rebalancing(it does copy-from Anthill) mod, spawn regular anthill. Before fix it used to segfault me, not anymore.

Additional context

@github-actions github-actions bot added the src changes related to source code. label Nov 14, 2023
@olanti-p olanti-p added this pull request to the merge queue Nov 14, 2023
Merged via the queue into cataclysmbnteam:upload with commit 4958b7d Nov 14, 2023
13 of 17 checks passed
@Vollch Vollch deleted the mutable_copyfrom branch November 14, 2023 20:06
@SophiaAtelier
Copy link

Did notice my old save throws this error when loading it (game still seems to run fine tho)
image

Doesn't give any errors when creating a new world

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
src changes related to source code.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

AntHill mapgen error catched
3 participants