Codechange: strongly type IndustryID

This commit is contained in:
Rubidium
2025-02-07 18:37:45 +01:00
committed by rubidium42
parent 7e04651220
commit d3408a4542
8 changed files with 11 additions and 13 deletions

View File

@@ -922,7 +922,7 @@ uint32_t SerialiseNewsReference(const NewsReference &reference)
uint32_t operator()(const TileIndex &t) { return t.base(); }
uint32_t operator()(const VehicleID v) { return v; }
uint32_t operator()(const StationID s) { return s; }
uint32_t operator()(const IndustryID i) { return i; }
uint32_t operator()(const IndustryID i) { return i.base(); }
uint32_t operator()(const TownID t) { return t; }
uint32_t operator()(const EngineID e) { return e.base(); }
};