racemanagers.cpp: Do not list championship on no cars #22

Merged
xavi merged 2 commits from xavi/speed-dreams-code:fix-championship into main 2025-01-19 08:18:22 +01:00

2 commits

Author SHA1 Message Date
1531992af5
Bump speed-dreams-data
Some checks are pending
/ build (pull_request) Has started running
The following commit is related to recent fixes on championship mode:

commit 4af7c4d6f028dabf677941f0b5cdb96bae392648
Author: Xavier Del Campo Romero <xavi.dcr@tutanota.com>
Date:   Fri Jan 17 11:56:30 2025 +0100

    raceman: Remove fixed driver lists

    Drivers can be generated by users, driver indexes are re-computed on
    startup and no drivers are provided on a fresh installation, so it is no
    longer possible to set up a fixed list of drivers on each championship
    type.
2025-01-19 08:16:51 +01:00
f593629982
racemanagers.cpp: Do not list championship on no cars
Some checks failed
/ build (pull_request) Failing after 42s
Some championships depend on a given car category (e.g.: "36GP") that
might have not been installed yet by the user.

Making the championship not available fixes a out-of-bounds access when
reading VecCarCategoryIds in driverselect.cpp.
2025-01-19 07:22:34 +01:00