Codechange: make VehicleType a scoped enum

This commit is contained in:
Peter Nelson
2026-04-19 20:51:18 +01:00
committed by Peter Nelson
parent b90aefbf49
commit 77403627a8
100 changed files with 1093 additions and 1054 deletions
+7
View File
@@ -43,6 +43,13 @@ static const SaveLoad _engine_desc[] = {
static TypedIndexContainer<std::vector<Engine>, EngineID> _temp_engine;
/**
* Get temporary engine data for loading savegame engine information.
* @param index Engine ID of data.
* @param type Vehicle type of engine.
* @param local_id The local index of the engine.
* @return A temporary engine.
*/
Engine *GetTempDataEngine(EngineID index, VehicleType type, uint16_t local_id)
{
if (index < _temp_engine.size()) {