The International Simutrans Forum

Simutrans Extended => Simutrans-Extended bug reports => Simutrans-Extended development => Simutrans-Extended closed bug reports => Topic started by: PJMack on May 17, 2021, 02:14:07 AM

Title: Cities shrinking during load causes segfault during subsequent saving
Post by: PJMack on May 17, 2021, 02:14:07 AM
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.  https://github.com/jamespetts/simutrans-extended/pull/379 (https://github.com/jamespetts/simutrans-extended/pull/379)
Title: Re: Cities shrinking during load causes segfault during subsequent saving
Post by: jamespetts on May 29, 2021, 12:35:11 PM
Splendid, thank you: now incorporated.