From d2e757db9ac532b2956cb6acabf25df082db2d47 Mon Sep 17 00:00:00 2001 From: Jonathan G Rennison Date: Fri, 29 Oct 2021 20:11:01 +0100 Subject: [PATCH] Set field size for PropertyID enum --- src/newgrf_properties.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/newgrf_properties.h b/src/newgrf_properties.h index 835a873847..94dde722e7 100644 --- a/src/newgrf_properties.h +++ b/src/newgrf_properties.h @@ -15,7 +15,7 @@ * Names are formatted as PROP__ * @todo Currently the list only contains properties which are used more than once in the code. I.e. they are available for callback 0x36. */ -enum PropertyID { +enum PropertyID : byte { PROP_VEHICLE_LOAD_AMOUNT = 0x07, ///< Loading speed PROP_TRAIN_SPEED = 0x09, ///< Max. speed: 1 unit = 1/1.6 mph = 1 km-ish/h