summaryrefslogtreecommitdiff
path: root/newgrf_engine.c
diff options
context:
space:
mode:
Diffstat (limited to 'newgrf_engine.c')
-rw-r--r--newgrf_engine.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/newgrf_engine.c b/newgrf_engine.c
index 5fd6c0189..7f534deed 100644
--- a/newgrf_engine.c
+++ b/newgrf_engine.c
@@ -397,7 +397,7 @@ int GetCustomEngineSprite(EngineID engine, const Vehicle* v, Direction direction
{
const SpriteGroup *group;
const RealSpriteGroup *rsg;
- byte cargo = GC_PURCHASE;
+ CargoID cargo = GC_PURCHASE;
byte loaded = 0;
bool in_motion = 0;
int totalsets, spriteset;
@@ -487,7 +487,7 @@ bool UsesWagonOverride(const Vehicle* v)
uint16 GetCallBackResult(uint16 callback_info, EngineID engine, const Vehicle *v)
{
const SpriteGroup *group;
- byte cargo = GC_DEFAULT;
+ CargoID cargo = GC_DEFAULT;
if (v != NULL)
cargo = _global_cargo_id[_opt.landscape][v->cargo_type];