News: Portal
Our Simutrans site. You can find everything about Simutrans from here.

Cities shrinking during load causes segfault during subsequent saving

Started by PJMack, May 17, 2021, 02:14:07 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.


If a game is saved while a coastal or island city has expanded into the ocean, the subsequent load shrinks the city back to size (as expected), however a segfault occurs whilst re-saving the game.

Upon tracing the error, it was found that cities_awaiting_private_car_route_check is saved using cities' center position, which upon loading, is no longer within the bounds of the city.  A pull request for using the city position rather than the center has been submitted.


Download Simutrans-Extended.

Want to help with development? See here for things to do for coding, and here for information on how to make graphics/objects.

Follow Simutrans-Extended on Facebook.