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

Disallow changing a vein into itself #5255

Merged
merged 1 commit into from
Feb 7, 2025

Conversation

NicksWorld
Copy link
Contributor

This adds a check for when the original and target material are the same, providing an error message if attempted.

The algorithm for finding neighboring vein tiles relies upon the original and target materials being different, otherwise it leads to infinite recursion which inevitably ends in a crash.

Fixes #5231

Prevents infinite recursion from occurring while searching for
neighboring vein tiles, which would eventually result in a crash.

Fixes DFHack#5231
@myk002 myk002 merged commit bf15f79 into DFHack:develop Feb 7, 2025
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

changevein crashes if attempting to change a vein to its current material
2 participants