The International Simutrans Forum

Simutrans Extended => Simutrans-Extended bug reports => Simutrans-Extended development => Simutrans-Extended closed bug reports => Topic started by: Rollmaterial on December 21, 2016, 01:28:14 AM

Title: [devel-new-2] Crash when saving after removing a town
Post by: Rollmaterial on December 21, 2016, 01:28:14 AM
If a town has been removed during the game, saving crashes with weighted_vector_tpl<T>::index_of() - not contained.
Title: Re: [devel-new-2] Crash when saving after removing a town
Post by: jamespetts on January 09, 2017, 01:47:50 PM
I cannot reproduce this error, but I have found and fixed an error relating to deleting cities which might be connected to this. Are you able to re-test?
Title: Re: [devel-new-2] Crash when saving after removing a town
Post by: Rollmaterial on January 09, 2017, 09:10:15 PM
It still occurs. Maybe the town needs to be connected with a stop. Otherwise try with the saved game form my last report about way upgrades.
Title: Re: [devel-new-2] Crash when saving after removing a town
Post by: jamespetts on January 09, 2017, 09:18:42 PM
I am still having trouble reproducing this. Which specific town did you delete? I deleted Kettering without difficulty when saving afterwards.
Title: Re: [devel-new-2] Crash when saving after removing a town
Post by: Rollmaterial on January 09, 2017, 09:34:22 PM
I get it when deleting Notting Hill.
Title: Re: [devel-new-2] Crash when saving after removing a town
Post by: jamespetts on January 09, 2017, 09:35:56 PM
Do you get it when you delete Kettering?
Title: Re: [devel-new-2] Crash when saving after removing a town
Post by: Rollmaterial on January 09, 2017, 09:39:40 PM
Quote from: jamespetts on January 09, 2017, 09:35:56 PM
Do you get it when you delete Kettering?
No
Title: Re: [devel-new-2] Crash when saving after removing a town
Post by: jamespetts on January 09, 2017, 09:53:37 PM
Thank you for that. I think that I have now fixed this: would you be able to re-test?