The International Simutrans Forum

Simutrans Extended => Simutrans-Extended development => Simutrans-Extended major projects => Topic started by: Ranran on June 14, 2022, 10:51:13 PM

Title: [ex15] Livery scheme is duplicated and registered every time saved and reloaded
Post by: Ranran 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.