-
Notifications
You must be signed in to change notification settings - Fork 41
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
Segfault when city removal causes boat displacement and unit removed with Lua during unit_moved event #2477
Comments
I'm looking into this bug. I found that it's possible to use freeciv21/server/citytools.cpp Line 1688 in 74984fa
freeciv21/server/citytools.cpp Lines 1748 to 1753 in 74984fa
How would you go about solving this? Should I pass in some extra data with the Lines 108 to 115 in 74984fa
|
Actually, single-responsibility. I don't think |
See related refactor #2478 |
See another related refactor #2481 |
Describe the bug
The server crashes if a city is disbanded, for example by migration, and the city contained a boat which was forced to move off of the city tile, and during the
unit_moved
Lua event the boat is destroyed.To Reproduce
Steps to reproduce the behaviour:
Expected behaviour
No crash.
Screenshots
Platform and version (please complete the following information):
Additional context
Discord discussion
The text was updated successfully, but these errors were encountered: