diff options
author | smatz <smatz@openttd.org> | 2009-07-16 21:37:59 +0000 |
---|---|---|
committer | smatz <smatz@openttd.org> | 2009-07-16 21:37:59 +0000 |
commit | f16314d0cc8a7b79ac48d4835f55a0968ccb77e6 (patch) | |
tree | fcbfee455debde78522ec9e4f1f03f71604540c4 /src/cargotype.cpp | |
parent | 77d13eae6194387ca6ce2b0eb835b7f97f67d085 (diff) | |
download | openttd-f16314d0cc8a7b79ac48d4835f55a0968ccb77e6.tar.xz |
(svn r16853) -Codechange: make CargoSpec const at two places
Diffstat (limited to 'src/cargotype.cpp')
-rw-r--r-- | src/cargotype.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cargotype.cpp b/src/cargotype.cpp index b239b9362..c4b80c57e 100644 --- a/src/cargotype.cpp +++ b/src/cargotype.cpp @@ -56,7 +56,7 @@ void SetupCargoForClimate(LandscapeID l) CargoID GetCargoIDByLabel(CargoLabel cl) { - CargoSpec *cs; + const CargoSpec *cs; FOR_ALL_CARGOSPECS(cs) { if (cs->label == cl) return cs->Index(); } @@ -74,7 +74,7 @@ CargoID GetCargoIDByBitnum(uint8 bitnum) { if (bitnum == INVALID_CARGO) return CT_INVALID; - CargoSpec *cs; + const CargoSpec *cs; FOR_ALL_CARGOSPECS(cs) { if (cs->bitnum == bitnum) return cs->Index(); } |