The International Simutrans Forum

Simutrans Extended => Simutrans-Extended bug reports => Simutrans-Extended development => Simutrans-Extended closed bug reports => Topic started by: Ranran(retired) on June 14, 2022, 10:51:13 PM

Title: [ex15] Livery scheme is duplicated and registered every time saved and reloaded
Post by: Ranran(retired) on June 14, 2022, 10:51:13 PM
This will register a duplicate livery each time it is saved.
https://github.com/jamespetts/simutrans-extended/blame/ex-15/dataobj/livery_scheme.cc#L78
You can see that deleting this line eliminates duplicate registrations.
However, the livery scheme code has many different changes from the master branch, so I am not sure of the intent.
Title: Re: [ex15] Livery scheme is duplicated and registered every time saved and reloaded
Post by: jamespetts on January 22, 2023, 11:55:04 PM
I believe that this was fixed a short while ago.