mirror of
https://github.com/OpenTTD/OpenTTD
synced 2025-12-22 04:32:47 +01:00
Codechange: Specify underlying type for all enums excluding those exposed to scripts. (#13383)
This commit is contained in:
@@ -135,7 +135,7 @@ struct SelectGameWindow : public Window {
|
||||
vc.delay = std::stoi(match[3].str()) * 1000; // milliseconds
|
||||
|
||||
/* Parse flags from second matching group. */
|
||||
enum IdType {
|
||||
enum IdType : uint8_t {
|
||||
ID_NONE, ID_VEHICLE
|
||||
} id_type = ID_NONE;
|
||||
for (char c : match[2].str()) {
|
||||
|
||||
Reference in New Issue
Block a user