-
-
Notifications
You must be signed in to change notification settings - Fork 9
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
Crash when conquering enemy castle #145
Comments
I got the same exception on the same line in a different game when conquering the enemy castle. |
Freeserf had same issue. I believe it was due to the now-deleted Inventory object nullptr checked? I forget exactly, the fix is somewhere in Forkserf changelog |
Thank you for the info. Imagine if there were no forks and everyone was working on the same code :) |
I didnt debug it yet but I think this problem is that the castle flag was not connected because all roads and building connected to the castle was already conquered. The code expects a flag to have at least one connected. |
Fix in Flag.cs.MergePaths(). This fixes the crash but I dont know how it is good enough as the final solution. From To
|
A savegame is attached. It is the yellow castle.
quicksave-04-03-22-19-09-32.zip
The text was updated successfully, but these errors were encountered: