(svn r4128) - CodeChange: Add proper semantics for CargoID for such variables instead of using the general byte-type.

This commit is contained in:
Darkvater
2006-03-26 22:23:32 +00:00
parent 76f1609ee1
commit d5909f901a
14 changed files with 39 additions and 38 deletions

View File

@@ -554,7 +554,7 @@ void GetProductionAroundTiles(AcceptedCargo produced, TileIndex tile,
gpc = _tile_type_procs[GetTileType(tile)]->get_produced_cargo_proc;
if (gpc != NULL) {
byte cargos[2] = { CT_INVALID, CT_INVALID };
CargoID cargos[2] = { CT_INVALID, CT_INVALID };
gpc(tile, cargos);
if (cargos[0] != CT_INVALID) {