News:

Do you need help?
Simutrans Wiki Manual can help you to play and extend Simutrans. In 9 languages.

[ex15] Livery scheme is duplicated and registered every time saved and reloaded

Started by Ranran, June 14, 2022, 10:51:13 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Ranran

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.